{"dependencies":[{"name":"78f9fc7ed987bf72f0fae6b99573fddb.json","size":10993386,"url":"https://gw.alipayobjects.com/os/f6/83709041-0938-4a05-b652-4ca58cbebc4a/demo_generalgraph_basicforcedirected/dependencies/herbox/78f9fc7ed987bf72f0fae6b99573fddb.json","ETag":"78F9FC7ED987BF72F0FAE6B99573FDDB","type":"json"},{"name":"0d7b758fdc47c7af5db47deeda4d99d4.json","size":5210534,"url":"https://gw.alipayobjects.com/os/f6/3350c511-1828-476c-bea3-3afc61b6bd4e/demo_generalgraph_basicforcedirected/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/basicForceDirected/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/basicForceDirected/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/basicForceDirected/index.acss":"/* required by usingComponents */","pages/GeneralGraph/basicForceDirected/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/basicForceDirected/index.js":"import F6 from '@antv/f6';\nimport { wrapContext } from '../../../utils/context';\nimport data from './data';\nimport force from '@antv/f6/dist/extends/layout/forceLayout';\n\n/**\n * 基本力导向布局及节点拖拽\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 F6.registerLayout('force', force);\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 * 初始化cnavas回调,缓存获得的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: 'force',\n },\n defaultNode: {\n size: 15,\n },\n });\n\n // 注册数据\n this.graph.data({\n nodes: data.nodes,\n edges: data.edges.map(function(edge, i) {\n edge.id = `edge${i}`;\n return Object.assign({}, edge);\n }),\n });\n\n // 更新位置用的函数\n function refreshDragedNodePosition(e) {\n const model = e.item.get('model');\n model.fx = e.x;\n model.fy = e.y;\n }\n\n // 监听事件\n this.graph.on('node:dragstart', function(e) {\n this.graph.layout();\n refreshDragedNodePosition(e);\n });\n this.graph.on('node:drag', function(e) {\n const forceLayout = this.graph.get('layoutController').layoutMethods[0];\n forceLayout.execute();\n refreshDragedNodePosition(e);\n });\n this.graph.on('node:dragend', function(e) {\n e.item.get('model').fx = null;\n e.item.get('model').fy = null;\n });\n\n this.graph.render();\n this.graph.fitView();\n },\n});\n","pages/GeneralGraph/basicForceDirected/index.json":"{\n \"defaultTitle\": \"basicForceDirected\",\n \"usingComponents\": {\n \"f6-canvas\": \"@antv/f6-alipay/es/container/container\"\n }\n}\n","pages/GeneralGraph/basicForceDirected/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":"0ac276a3c7f76e8e63f36d74af44bc28.json","size":742504,"url":"https://gw.alipayobjects.com/os/f6/08d38e19-8dbb-48d0-9ee8-d8fccfaf437c/demo_generalgraph_basicforcedirected/dist/herbox/0ac276a3c7f76e8e63f36d74af44bc28.json","ETag":"0AC276A3C7F76E8E63F36D74AF44BC28","type":"json"}],"name":"pages/GeneralGraph/basicForceDirected/index","buildVersion":"0.72.7","remaxVersion":"2.0.3","component2":false,"css2":false}