{"dependencies":[{"name":"78f9fc7ed987bf72f0fae6b99573fddb.json","size":10993386,"url":"https://gw.alipayobjects.com/os/f6/b9a73717-a6e5-4b1d-be5d-386305342e77/demo_generalgraph_layouttranslate/dependencies/herbox/78f9fc7ed987bf72f0fae6b99573fddb.json","ETag":"78F9FC7ED987BF72F0FAE6B99573FDDB","type":"json"},{"name":"0d7b758fdc47c7af5db47deeda4d99d4.json","size":5210534,"url":"https://gw.alipayobjects.com/os/f6/710843c3-cb29-440f-9585-2d86e6ccce9e/demo_generalgraph_layouttranslate/dependencies/herbox/0d7b758fdc47c7af5db47deeda4d99d4.json","ETag":"0D7B758FDC47C7AF5DB47DEEDA4D99D4","type":"json"}],"sourceCode":{"app.js":"App({\n onLaunch(options) {\n // 第一次打开\n // options.query == {number:1}\n console.info('App onLaunch');\n },\n onShow(options) {\n // 从后台被 scheme 重新打开\n // options.query == {number:1}\n },\n});\n","app.json":"{\"window\":{\"defaultTitle\":\"F6移动端demo\",\"allowsBounceVertical\":\"NO\",\"canPullDown\":\"NO\"},\"pages\":[\"pages/GeneralGraph/layoutTranslate/index\"]}\n","mini.project.json":"{\n \"enableAppxNg\": true,\n \"component2\": true\n}","package.json":"{\n \"name\": \"f6demo\",\n \"version\": \"1.0.0\",\n \"description\": \"f6demo\",\n \"main\": \"index.js\",\n \"scripts\": {\n \"test\": \"echo \\\"Error: no test specified\\\" && exit 1\"\n },\n \"dependencies\": {\n \"@antv/f6\": \"^0.0.12\",\n \"@antv/f6-alipay\": \"^0.0.2\",\n \"@babel/runtime\": \"^7.14.0\"\n },\n \"author\": \"\",\n \"license\": \"ISC\"\n}\n","pages/GeneralGraph/layoutTranslate/data.js":"export default {\n nodes: [\n {\n id: 'Myriel',\n },\n {\n id: 'Napoleon',\n },\n {\n id: 'Mlle.Baptistine',\n },\n {\n id: 'Mme.Magloire',\n },\n {\n id: 'CountessdeLo',\n },\n {\n id: 'Geborand',\n },\n {\n id: 'Champtercier',\n },\n {\n id: 'Cravatte',\n },\n {\n id: 'Count',\n },\n {\n id: 'OldMan',\n },\n {\n id: 'Labarre',\n },\n {\n id: 'Valjean',\n },\n {\n id: 'Marguerite',\n },\n {\n id: 'Mme.deR',\n },\n {\n id: 'Isabeau',\n },\n {\n id: 'Gervais',\n },\n {\n id: 'Tholomyes',\n },\n {\n id: 'Listolier',\n },\n {\n id: 'Fameuil',\n },\n {\n id: 'Blacheville',\n },\n {\n id: 'Favourite',\n },\n {\n id: 'Dahlia',\n },\n {\n id: 'Zephine',\n },\n {\n id: 'Fantine',\n },\n {\n id: 'Mme.Thenardier',\n },\n {\n id: 'Thenardier',\n },\n {\n id: 'Cosette',\n },\n {\n id: 'Javert',\n },\n {\n id: 'Fauchelevent',\n },\n {\n id: 'Bamatabois',\n },\n {\n id: 'Perpetue',\n },\n {\n id: 'Simplice',\n },\n {\n id: 'Scaufflaire',\n },\n {\n id: 'Woman1',\n },\n {\n id: 'Judge',\n },\n {\n id: 'Champmathieu',\n },\n {\n id: 'Brevet',\n },\n {\n id: 'Chenildieu',\n },\n {\n id: 'Cochepaille',\n },\n {\n id: 'Pontmercy',\n },\n {\n id: 'Boulatruelle',\n },\n {\n id: 'Eponine',\n },\n {\n id: 'Anzelma',\n },\n {\n id: 'Woman2',\n },\n {\n id: 'MotherInnocent',\n },\n {\n id: 'Gribier',\n },\n {\n id: 'Jondrette',\n },\n {\n id: 'Mme.Burgon',\n },\n {\n id: 'Gavroche',\n },\n {\n id: 'Gillenormand',\n },\n {\n id: 'Magnon',\n },\n {\n id: 'Mlle.Gillenormand',\n },\n {\n id: 'Mme.Pontmercy',\n },\n {\n id: 'Mlle.Vaubois',\n },\n {\n id: 'Lt.Gillenormand',\n },\n {\n id: 'Marius',\n },\n {\n id: 'BaronessT',\n },\n {\n id: 'Mabeuf',\n },\n {\n id: 'Enjolras',\n },\n {\n id: 'Combeferre',\n },\n {\n id: 'Prouvaire',\n },\n {\n id: 'Feuilly',\n },\n {\n id: 'Courfeyrac',\n },\n {\n id: 'Bahorel',\n },\n {\n id: 'Bossuet',\n },\n {\n id: 'Joly',\n },\n {\n id: 'Grantaire',\n },\n {\n id: 'MotherPlutarch',\n },\n {\n id: 'Gueulemer',\n },\n {\n id: 'Babet',\n },\n {\n id: 'Claquesous',\n },\n {\n id: 'Montparnasse',\n },\n {\n id: 'Toussaint',\n },\n {\n id: 'Child1',\n },\n {\n id: 'Child2',\n },\n {\n id: 'Brujon',\n },\n {\n id: 'Mme.Hucheloup',\n },\n ],\n edges: [\n {\n source: 'Napoleon',\n target: 'Myriel',\n value: 1,\n },\n {\n source: 'Mlle.Baptistine',\n target: 'Myriel',\n value: 8,\n },\n {\n source: 'Mme.Magloire',\n target: 'Myriel',\n value: 10,\n },\n {\n source: 'Mme.Magloire',\n target: 'Mlle.Baptistine',\n value: 6,\n },\n {\n source: 'CountessdeLo',\n target: 'Myriel',\n value: 1,\n },\n {\n source: 'Geborand',\n target: 'Myriel',\n value: 1,\n },\n {\n source: 'Champtercier',\n target: 'Myriel',\n value: 1,\n },\n {\n source: 'Cravatte',\n target: 'Myriel',\n value: 1,\n },\n {\n source: 'Count',\n target: 'Myriel',\n value: 2,\n },\n {\n source: 'OldMan',\n target: 'Myriel',\n value: 1,\n },\n {\n source: 'Valjean',\n target: 'Labarre',\n value: 1,\n },\n {\n source: 'Valjean',\n target: 'Mme.Magloire',\n value: 3,\n },\n {\n source: 'Valjean',\n target: 'Mlle.Baptistine',\n value: 3,\n },\n {\n source: 'Valjean',\n target: 'Myriel',\n value: 5,\n },\n {\n source: 'Marguerite',\n target: 'Valjean',\n value: 1,\n },\n {\n source: 'Mme.deR',\n target: 'Valjean',\n value: 1,\n },\n {\n source: 'Isabeau',\n target: 'Valjean',\n value: 1,\n },\n {\n source: 'Gervais',\n target: 'Valjean',\n value: 1,\n },\n {\n source: 'Listolier',\n target: 'Tholomyes',\n value: 4,\n },\n {\n source: 'Fameuil',\n target: 'Tholomyes',\n value: 4,\n },\n {\n source: 'Fameuil',\n target: 'Listolier',\n value: 4,\n },\n {\n source: 'Blacheville',\n target: 'Tholomyes',\n value: 4,\n },\n {\n source: 'Blacheville',\n target: 'Listolier',\n value: 4,\n },\n {\n source: 'Blacheville',\n target: 'Fameuil',\n value: 4,\n },\n {\n source: 'Favourite',\n target: 'Tholomyes',\n value: 3,\n },\n {\n source: 'Favourite',\n target: 'Listolier',\n value: 3,\n },\n {\n source: 'Favourite',\n target: 'Fameuil',\n value: 3,\n },\n {\n source: 'Favourite',\n target: 'Blacheville',\n value: 4,\n },\n {\n source: 'Dahlia',\n target: 'Tholomyes',\n value: 3,\n },\n {\n source: 'Dahlia',\n target: 'Listolier',\n value: 3,\n },\n {\n source: 'Dahlia',\n target: 'Fameuil',\n value: 3,\n },\n {\n source: 'Dahlia',\n target: 'Blacheville',\n value: 3,\n },\n {\n source: 'Dahlia',\n target: 'Favourite',\n value: 5,\n },\n {\n source: 'Zephine',\n target: 'Tholomyes',\n value: 3,\n },\n {\n source: 'Zephine',\n target: 'Listolier',\n value: 3,\n },\n {\n source: 'Zephine',\n target: 'Fameuil',\n value: 3,\n },\n {\n source: 'Zephine',\n target: 'Blacheville',\n value: 3,\n },\n {\n source: 'Zephine',\n target: 'Favourite',\n value: 4,\n },\n {\n source: 'Zephine',\n target: 'Dahlia',\n value: 4,\n },\n {\n source: 'Fantine',\n target: 'Tholomyes',\n value: 3,\n },\n {\n source: 'Fantine',\n target: 'Listolier',\n value: 3,\n },\n {\n source: 'Fantine',\n target: 'Fameuil',\n value: 3,\n },\n {\n source: 'Fantine',\n target: 'Blacheville',\n value: 3,\n },\n {\n source: 'Fantine',\n target: 'Favourite',\n value: 4,\n },\n {\n source: 'Fantine',\n target: 'Dahlia',\n value: 4,\n },\n {\n source: 'Fantine',\n target: 'Zephine',\n value: 4,\n },\n {\n source: 'Fantine',\n target: 'Marguerite',\n value: 2,\n },\n {\n source: 'Fantine',\n target: 'Valjean',\n value: 9,\n },\n {\n source: 'Mme.Thenardier',\n target: 'Fantine',\n value: 2,\n },\n {\n source: 'Mme.Thenardier',\n target: 'Valjean',\n value: 7,\n },\n {\n source: 'Thenardier',\n target: 'Mme.Thenardier',\n value: 13,\n },\n {\n source: 'Thenardier',\n target: 'Fantine',\n value: 1,\n },\n {\n source: 'Thenardier',\n target: 'Valjean',\n value: 12,\n },\n {\n source: 'Cosette',\n target: 'Mme.Thenardier',\n value: 4,\n },\n {\n source: 'Cosette',\n target: 'Valjean',\n value: 31,\n },\n {\n source: 'Cosette',\n target: 'Tholomyes',\n value: 1,\n },\n {\n source: 'Cosette',\n target: 'Thenardier',\n value: 1,\n },\n {\n source: 'Javert',\n target: 'Valjean',\n value: 17,\n },\n {\n source: 'Javert',\n target: 'Fantine',\n value: 5,\n },\n {\n source: 'Javert',\n target: 'Thenardier',\n value: 5,\n },\n {\n source: 'Javert',\n target: 'Mme.Thenardier',\n value: 1,\n },\n {\n source: 'Javert',\n target: 'Cosette',\n value: 1,\n },\n {\n source: 'Fauchelevent',\n target: 'Valjean',\n value: 8,\n },\n {\n source: 'Fauchelevent',\n target: 'Javert',\n value: 1,\n },\n {\n source: 'Bamatabois',\n target: 'Fantine',\n value: 1,\n },\n {\n source: 'Bamatabois',\n target: 'Javert',\n value: 1,\n },\n {\n source: 'Bamatabois',\n target: 'Valjean',\n value: 2,\n },\n {\n source: 'Perpetue',\n target: 'Fantine',\n value: 1,\n },\n {\n source: 'Simplice',\n target: 'Perpetue',\n value: 2,\n },\n {\n source: 'Simplice',\n target: 'Valjean',\n value: 3,\n },\n {\n source: 'Simplice',\n target: 'Fantine',\n value: 2,\n },\n {\n source: 'Simplice',\n target: 'Javert',\n value: 1,\n },\n {\n source: 'Scaufflaire',\n target: 'Valjean',\n value: 1,\n },\n {\n source: 'Woman1',\n target: 'Valjean',\n value: 2,\n },\n {\n source: 'Woman1',\n target: 'Javert',\n value: 1,\n },\n {\n source: 'Judge',\n target: 'Valjean',\n value: 3,\n },\n {\n source: 'Judge',\n target: 'Bamatabois',\n value: 2,\n },\n {\n source: 'Champmathieu',\n target: 'Valjean',\n value: 3,\n },\n {\n source: 'Champmathieu',\n target: 'Judge',\n value: 3,\n },\n {\n source: 'Champmathieu',\n target: 'Bamatabois',\n value: 2,\n },\n {\n source: 'Brevet',\n target: 'Judge',\n value: 2,\n },\n {\n source: 'Brevet',\n target: 'Champmathieu',\n value: 2,\n },\n {\n source: 'Brevet',\n target: 'Valjean',\n value: 2,\n },\n {\n source: 'Brevet',\n target: 'Bamatabois',\n value: 1,\n },\n {\n source: 'Chenildieu',\n target: 'Judge',\n value: 2,\n },\n {\n source: 'Chenildieu',\n target: 'Champmathieu',\n value: 2,\n },\n {\n source: 'Chenildieu',\n target: 'Brevet',\n value: 2,\n },\n {\n source: 'Chenildieu',\n target: 'Valjean',\n value: 2,\n },\n {\n source: 'Chenildieu',\n target: 'Bamatabois',\n value: 1,\n },\n {\n source: 'Cochepaille',\n target: 'Judge',\n value: 2,\n },\n {\n source: 'Cochepaille',\n target: 'Champmathieu',\n value: 2,\n },\n {\n source: 'Cochepaille',\n target: 'Brevet',\n value: 2,\n },\n {\n source: 'Cochepaille',\n target: 'Chenildieu',\n value: 2,\n },\n {\n source: 'Cochepaille',\n target: 'Valjean',\n value: 2,\n },\n {\n source: 'Cochepaille',\n target: 'Bamatabois',\n value: 1,\n },\n {\n source: 'Pontmercy',\n target: 'Thenardier',\n value: 1,\n },\n {\n source: 'Boulatruelle',\n target: 'Thenardier',\n value: 1,\n },\n {\n source: 'Eponine',\n target: 'Mme.Thenardier',\n value: 2,\n },\n {\n source: 'Eponine',\n target: 'Thenardier',\n value: 3,\n },\n {\n source: 'Anzelma',\n target: 'Eponine',\n value: 2,\n },\n {\n source: 'Anzelma',\n target: 'Thenardier',\n value: 2,\n },\n {\n source: 'Anzelma',\n target: 'Mme.Thenardier',\n value: 1,\n },\n {\n source: 'Woman2',\n target: 'Valjean',\n value: 3,\n },\n {\n source: 'Woman2',\n target: 'Cosette',\n value: 1,\n },\n {\n source: 'Woman2',\n target: 'Javert',\n value: 1,\n },\n {\n source: 'MotherInnocent',\n target: 'Fauchelevent',\n value: 3,\n },\n {\n source: 'MotherInnocent',\n target: 'Valjean',\n value: 1,\n },\n {\n source: 'Gribier',\n target: 'Fauchelevent',\n value: 2,\n },\n {\n source: 'Mme.Burgon',\n target: 'Jondrette',\n value: 1,\n },\n {\n source: 'Gavroche',\n target: 'Mme.Burgon',\n value: 2,\n },\n {\n source: 'Gavroche',\n target: 'Thenardier',\n value: 1,\n },\n {\n source: 'Gavroche',\n target: 'Javert',\n value: 1,\n },\n {\n source: 'Gavroche',\n target: 'Valjean',\n value: 1,\n },\n {\n source: 'Gillenormand',\n target: 'Cosette',\n value: 3,\n },\n {\n source: 'Gillenormand',\n target: 'Valjean',\n value: 2,\n },\n {\n source: 'Magnon',\n target: 'Gillenormand',\n value: 1,\n },\n {\n source: 'Magnon',\n target: 'Mme.Thenardier',\n value: 1,\n },\n {\n source: 'Mlle.Gillenormand',\n target: 'Gillenormand',\n value: 9,\n },\n {\n source: 'Mlle.Gillenormand',\n target: 'Cosette',\n value: 2,\n },\n {\n source: 'Mlle.Gillenormand',\n target: 'Valjean',\n value: 2,\n },\n {\n source: 'Mme.Pontmercy',\n target: 'Mlle.Gillenormand',\n value: 1,\n },\n {\n source: 'Mme.Pontmercy',\n target: 'Pontmercy',\n value: 1,\n },\n {\n source: 'Mlle.Vaubois',\n target: 'Mlle.Gillenormand',\n value: 1,\n },\n {\n source: 'Lt.Gillenormand',\n target: 'Mlle.Gillenormand',\n value: 2,\n },\n {\n source: 'Lt.Gillenormand',\n target: 'Gillenormand',\n value: 1,\n },\n {\n source: 'Lt.Gillenormand',\n target: 'Cosette',\n value: 1,\n },\n {\n source: 'Marius',\n target: 'Mlle.Gillenormand',\n value: 6,\n },\n {\n source: 'Marius',\n target: 'Gillenormand',\n value: 12,\n },\n {\n source: 'Marius',\n target: 'Pontmercy',\n value: 1,\n },\n {\n source: 'Marius',\n target: 'Lt.Gillenormand',\n value: 1,\n },\n {\n source: 'Marius',\n target: 'Cosette',\n value: 21,\n },\n {\n source: 'Marius',\n target: 'Valjean',\n value: 19,\n },\n {\n source: 'Marius',\n target: 'Tholomyes',\n value: 1,\n },\n {\n source: 'Marius',\n target: 'Thenardier',\n value: 2,\n },\n {\n source: 'Marius',\n target: 'Eponine',\n value: 5,\n },\n {\n source: 'Marius',\n target: 'Gavroche',\n value: 4,\n },\n {\n source: 'BaronessT',\n target: 'Gillenormand',\n value: 1,\n },\n {\n source: 'BaronessT',\n target: 'Marius',\n value: 1,\n },\n {\n source: 'Mabeuf',\n target: 'Marius',\n value: 1,\n },\n {\n source: 'Mabeuf',\n target: 'Eponine',\n value: 1,\n },\n {\n source: 'Mabeuf',\n target: 'Gavroche',\n value: 1,\n },\n {\n source: 'Enjolras',\n target: 'Marius',\n value: 7,\n },\n {\n source: 'Enjolras',\n target: 'Gavroche',\n value: 7,\n },\n {\n source: 'Enjolras',\n target: 'Javert',\n value: 6,\n },\n {\n source: 'Enjolras',\n target: 'Mabeuf',\n value: 1,\n },\n {\n source: 'Enjolras',\n target: 'Valjean',\n value: 4,\n },\n {\n source: 'Combeferre',\n target: 'Enjolras',\n value: 15,\n },\n {\n source: 'Combeferre',\n target: 'Marius',\n value: 5,\n },\n {\n source: 'Combeferre',\n target: 'Gavroche',\n value: 6,\n },\n {\n source: 'Combeferre',\n target: 'Mabeuf',\n value: 2,\n },\n {\n source: 'Prouvaire',\n target: 'Gavroche',\n value: 1,\n },\n {\n source: 'Prouvaire',\n target: 'Enjolras',\n value: 4,\n },\n {\n source: 'Prouvaire',\n target: 'Combeferre',\n value: 2,\n },\n {\n source: 'Feuilly',\n target: 'Gavroche',\n value: 2,\n },\n {\n source: 'Feuilly',\n target: 'Enjolras',\n value: 6,\n },\n {\n source: 'Feuilly',\n target: 'Prouvaire',\n value: 2,\n },\n {\n source: 'Feuilly',\n target: 'Combeferre',\n value: 5,\n },\n {\n source: 'Feuilly',\n target: 'Mabeuf',\n value: 1,\n },\n {\n source: 'Feuilly',\n target: 'Marius',\n value: 1,\n },\n {\n source: 'Courfeyrac',\n target: 'Marius',\n value: 9,\n },\n {\n source: 'Courfeyrac',\n target: 'Enjolras',\n value: 17,\n },\n {\n source: 'Courfeyrac',\n target: 'Combeferre',\n value: 13,\n },\n {\n source: 'Courfeyrac',\n target: 'Gavroche',\n value: 7,\n },\n {\n source: 'Courfeyrac',\n target: 'Mabeuf',\n value: 2,\n },\n {\n source: 'Courfeyrac',\n target: 'Eponine',\n value: 1,\n },\n {\n source: 'Courfeyrac',\n target: 'Feuilly',\n value: 6,\n },\n {\n source: 'Courfeyrac',\n target: 'Prouvaire',\n value: 3,\n },\n {\n source: 'Bahorel',\n target: 'Combeferre',\n value: 5,\n },\n {\n source: 'Bahorel',\n target: 'Gavroche',\n value: 5,\n },\n {\n source: 'Bahorel',\n target: 'Courfeyrac',\n value: 6,\n },\n {\n source: 'Bahorel',\n target: 'Mabeuf',\n value: 2,\n },\n {\n source: 'Bahorel',\n target: 'Enjolras',\n value: 4,\n },\n {\n source: 'Bahorel',\n target: 'Feuilly',\n value: 3,\n },\n {\n source: 'Bahorel',\n target: 'Prouvaire',\n value: 2,\n },\n {\n source: 'Bahorel',\n target: 'Marius',\n value: 1,\n },\n {\n source: 'Bossuet',\n target: 'Marius',\n value: 5,\n },\n {\n source: 'Bossuet',\n target: 'Courfeyrac',\n value: 12,\n },\n {\n source: 'Bossuet',\n target: 'Gavroche',\n value: 5,\n },\n {\n source: 'Bossuet',\n target: 'Bahorel',\n value: 4,\n },\n {\n source: 'Bossuet',\n target: 'Enjolras',\n value: 10,\n },\n {\n source: 'Bossuet',\n target: 'Feuilly',\n value: 6,\n },\n {\n source: 'Bossuet',\n target: 'Prouvaire',\n value: 2,\n },\n {\n source: 'Bossuet',\n target: 'Combeferre',\n value: 9,\n },\n {\n source: 'Bossuet',\n target: 'Mabeuf',\n value: 1,\n },\n {\n source: 'Bossuet',\n target: 'Valjean',\n value: 1,\n },\n {\n source: 'Joly',\n target: 'Bahorel',\n value: 5,\n },\n {\n source: 'Joly',\n target: 'Bossuet',\n value: 7,\n },\n {\n source: 'Joly',\n target: 'Gavroche',\n value: 3,\n },\n {\n source: 'Joly',\n target: 'Courfeyrac',\n value: 5,\n },\n {\n source: 'Joly',\n target: 'Enjolras',\n value: 5,\n },\n {\n source: 'Joly',\n target: 'Feuilly',\n value: 5,\n },\n {\n source: 'Joly',\n target: 'Prouvaire',\n value: 2,\n },\n {\n source: 'Joly',\n target: 'Combeferre',\n value: 5,\n },\n {\n source: 'Joly',\n target: 'Mabeuf',\n value: 1,\n },\n {\n source: 'Joly',\n target: 'Marius',\n value: 2,\n },\n {\n source: 'Grantaire',\n target: 'Bossuet',\n value: 3,\n },\n {\n source: 'Grantaire',\n target: 'Enjolras',\n value: 3,\n },\n {\n source: 'Grantaire',\n target: 'Combeferre',\n value: 1,\n },\n {\n source: 'Grantaire',\n target: 'Courfeyrac',\n value: 2,\n },\n {\n source: 'Grantaire',\n target: 'Joly',\n value: 2,\n },\n {\n source: 'Grantaire',\n target: 'Gavroche',\n value: 1,\n },\n {\n source: 'Grantaire',\n target: 'Bahorel',\n value: 1,\n },\n {\n source: 'Grantaire',\n target: 'Feuilly',\n value: 1,\n },\n {\n source: 'Grantaire',\n target: 'Prouvaire',\n value: 1,\n },\n {\n source: 'MotherPlutarch',\n target: 'Mabeuf',\n value: 3,\n },\n {\n source: 'Gueulemer',\n target: 'Thenardier',\n value: 5,\n },\n {\n source: 'Gueulemer',\n target: 'Valjean',\n value: 1,\n },\n {\n source: 'Gueulemer',\n target: 'Mme.Thenardier',\n value: 1,\n },\n {\n source: 'Gueulemer',\n target: 'Javert',\n value: 1,\n },\n {\n source: 'Gueulemer',\n target: 'Gavroche',\n value: 1,\n },\n {\n source: 'Gueulemer',\n target: 'Eponine',\n value: 1,\n },\n {\n source: 'Babet',\n target: 'Thenardier',\n value: 6,\n },\n {\n source: 'Babet',\n target: 'Gueulemer',\n value: 6,\n },\n {\n source: 'Babet',\n target: 'Valjean',\n value: 1,\n },\n {\n source: 'Babet',\n target: 'Mme.Thenardier',\n value: 1,\n },\n {\n source: 'Babet',\n target: 'Javert',\n value: 2,\n },\n {\n source: 'Babet',\n target: 'Gavroche',\n value: 1,\n },\n {\n source: 'Babet',\n target: 'Eponine',\n value: 1,\n },\n {\n source: 'Claquesous',\n target: 'Thenardier',\n value: 4,\n },\n {\n source: 'Claquesous',\n target: 'Babet',\n value: 4,\n },\n {\n source: 'Claquesous',\n target: 'Gueulemer',\n value: 4,\n },\n {\n source: 'Claquesous',\n target: 'Valjean',\n value: 1,\n },\n {\n source: 'Claquesous',\n target: 'Mme.Thenardier',\n value: 1,\n },\n {\n source: 'Claquesous',\n target: 'Javert',\n value: 1,\n },\n {\n source: 'Claquesous',\n target: 'Eponine',\n value: 1,\n },\n {\n source: 'Claquesous',\n target: 'Enjolras',\n value: 1,\n },\n {\n source: 'Montparnasse',\n target: 'Javert',\n value: 1,\n },\n {\n source: 'Montparnasse',\n target: 'Babet',\n value: 2,\n },\n {\n source: 'Montparnasse',\n target: 'Gueulemer',\n value: 2,\n },\n {\n source: 'Montparnasse',\n target: 'Claquesous',\n value: 2,\n },\n {\n source: 'Montparnasse',\n target: 'Valjean',\n value: 1,\n },\n {\n source: 'Montparnasse',\n target: 'Gavroche',\n value: 1,\n },\n {\n source: 'Montparnasse',\n target: 'Eponine',\n value: 1,\n },\n {\n source: 'Montparnasse',\n target: 'Thenardier',\n value: 1,\n },\n {\n source: 'Toussaint',\n target: 'Cosette',\n value: 2,\n },\n {\n source: 'Toussaint',\n target: 'Javert',\n value: 1,\n },\n {\n source: 'Toussaint',\n target: 'Valjean',\n value: 1,\n },\n {\n source: 'Child1',\n target: 'Gavroche',\n value: 2,\n },\n {\n source: 'Child2',\n target: 'Gavroche',\n value: 2,\n },\n {\n source: 'Child2',\n target: 'Child1',\n value: 3,\n },\n {\n source: 'Brujon',\n target: 'Babet',\n value: 3,\n },\n {\n source: 'Brujon',\n target: 'Gueulemer',\n value: 3,\n },\n {\n source: 'Brujon',\n target: 'Thenardier',\n value: 3,\n },\n {\n source: 'Brujon',\n target: 'Gavroche',\n value: 1,\n },\n {\n source: 'Brujon',\n target: 'Eponine',\n value: 1,\n },\n {\n source: 'Brujon',\n target: 'Claquesous',\n value: 1,\n },\n {\n source: 'Brujon',\n target: 'Montparnasse',\n value: 1,\n },\n {\n source: 'Mme.Hucheloup',\n target: 'Bossuet',\n value: 1,\n },\n {\n source: 'Mme.Hucheloup',\n target: 'Joly',\n value: 1,\n },\n {\n source: 'Mme.Hucheloup',\n target: 'Grantaire',\n value: 1,\n },\n {\n source: 'Mme.Hucheloup',\n target: 'Bahorel',\n value: 1,\n },\n {\n source: 'Mme.Hucheloup',\n target: 'Courfeyrac',\n value: 1,\n },\n {\n source: 'Mme.Hucheloup',\n target: 'Gavroche',\n value: 1,\n },\n {\n source: 'Mme.Hucheloup',\n target: 'Enjolras',\n value: 1,\n },\n ],\n};\n","pages/GeneralGraph/layoutTranslate/index.acss":"/* required by usingComponents */","pages/GeneralGraph/layoutTranslate/index.axml":"<f6-canvas\n width=\"{{width}}\"\n height=\"{{height}}\"\n forceMini=\"{{forceMini}}\"\n pixelRatio=\"{{pixelRatio}}\"\n onTouchEvent=\"handleTouch\"\n onInit=\"handleInit\"\n></f6-canvas>","pages/GeneralGraph/layoutTranslate/index.js":"import F6 from '@antv/f6';\nimport { wrapContext } from '../../../utils/context';\nimport data from './data';\nimport circular from '@antv/f6/dist/extends/layout/circularLayout';\nimport grid from '@antv/f6/dist/extends/layout/gridLayout';\nimport force from '@antv/f6/dist/extends/layout/forceLayout';\nimport radial from '@antv/f6/dist/extends/layout/radialLayout';\nimport concentric from '@antv/f6/dist/extends/layout/concentricLayout';\nimport mds from '@antv/f6/dist/extends/layout/mdsLayout';\n\n/**\n * layoutTranslate\n */\n\nPage({\n canvas: null,\n ctx: null,\n renderer: '', // mini、mini-native等,F6需要,标记环境\n isCanvasInit: false, // canvas是否准备好了\n graph: null,\n\n data: {\n width: 375,\n height: 600,\n pixelRatio: 2,\n forceMini: false,\n },\n\n onLoad() {\n // 注册布局\n F6.registerLayout('circular', circular);\n F6.registerLayout('grid', grid);\n F6.registerLayout('force', force);\n F6.registerLayout('radial', radial);\n F6.registerLayout('concentric', concentric);\n F6.registerLayout('mds', mds);\n // 同步获取window的宽高\n const { windowWidth, windowHeight, pixelRatio } = my.getSystemInfoSync();\n\n this.setData({\n width: windowWidth,\n height: windowHeight,\n pixelRatio,\n });\n },\n\n /**\n * 初始化canvas回调,缓存获得的context\n * @param {*} ctx 绘图context\n * @param {*} rect 宽高信息\n * @param {*} canvas canvas对象,在render为mini时为null\n * @param {*} renderer 使用canvas 1.0还是canvas 2.0,mini | mini-native\n */\n handleInit(ctx, rect, canvas, renderer) {\n this.isCanvasInit = true;\n this.ctx = wrapContext(ctx);\n this.renderer = renderer;\n this.canvas = canvas;\n this.updateChart();\n },\n\n /**\n * canvas派发的事件,转派给graph实例\n */\n handleTouch(e) {\n this.graph && this.graph.emitEvent(e);\n },\n\n updateChart() {\n const { width, height, pixelRatio } = this.data;\n\n // 创建F6实例\n this.graph = new F6.Graph({\n context: this.ctx,\n renderer: this.renderer,\n width,\n height,\n pixelRatio,\n fitView: true,\n layout: {\n type: 'circular', // TODO:random\n },\n modes: {\n default: ['drag-node'],\n },\n animate: true,\n });\n\n this.graph.data(data);\n this.graph.render();\n this.graph.fitView();\n setTimeout(() => {\n this.graph.updateLayout({\n type: 'circular',\n radius: 200,\n });\n }, 3000);\n setTimeout(() => {\n this.graph.updateLayout({\n type: 'grid',\n });\n }, 6000);\n setTimeout(() => {\n this.graph.updateLayout({\n type: 'force',\n preventOverlap: true,\n nodeSize: 20,\n });\n }, 9000);\n setTimeout(() => {\n this.graph.updateLayout({\n type: 'radial',\n preventOverlap: true,\n nodeSize: 15,\n });\n }, 12000);\n setTimeout(() => {\n this.graph.updateLayout({\n type: 'concentric',\n minNodeSpacing: 30,\n });\n }, 15000);\n setTimeout(() => {\n this.graph.updateLayout({\n type: 'mds',\n linkDistance: 100,\n });\n }, 18000);\n },\n});\n","pages/GeneralGraph/layoutTranslate/index.json":"{\n \"defaultTitle\": \"layoutTranslate\",\n \"usingComponents\": {\n \"f6-canvas\": \"@antv/f6-alipay/es/container/container\"\n }\n}\n","pages/GeneralGraph/layoutTranslate/index.less":"page {\n background-color: #f7f7f7;\n border: 1px solid rgba(0,0,0,0);\n box-sizing: border-box;\n}\n\n.page-section-demo {\n padding: 32rpx;\n}","utils/common.js":"function strLen(str = '') {\n let len = 0;\n for (let i = 0; i < str.length; i++) {\n if (str.charCodeAt(i) > 0 && str.charCodeAt(i) < 128) {\n len += 1;\n } else {\n len += 2;\n }\n }\n\n return len;\n}\n\nfunction measureText(text, font) {\n let fontSize = 12;\n if (font) {\n fontSize = parseInt(font.split(' ')[3], 10);\n }\n fontSize /= 2;\n return {\n width: strLen(text) * fontSize,\n };\n}\n\nexport { measureText };\n","utils/context.js":"import { measureText } from './common';\n/**\n * 部分小程序context会缺少函数,补上\n */\nfunction wrapContext(ctx) {\n if (!ctx) return;\n if (!ctx.measureText) {\n ctx.measureText = measureText;\n }\n return ctx;\n}\n\nexport { wrapContext };\n"},"dist":[{"name":"70e289c8e12d25d2b6b726652ae17a5a.json","size":987253,"url":"https://gw.alipayobjects.com/os/f6/47d05241-1999-4ba5-ae60-65eca332b042/demo_generalgraph_layouttranslate/dist/herbox/70e289c8e12d25d2b6b726652ae17a5a.json","ETag":"70E289C8E12D25D2B6B726652AE17A5A","type":"json"}],"name":"pages/GeneralGraph/layoutTranslate/index","buildVersion":"0.72.7","remaxVersion":"2.0.3","component2":false,"css2":false}