{"dependencies":[{"name":"09c5c8b1c15b87c668cc8c88e049443f.json","size":10977427,"url":"https://gw.alipayobjects.com/os/f6/1fc075a6-c881-4664-a18b-8a7ea73aabb4/demo/dependencies/herbox/09c5c8b1c15b87c668cc8c88e049443f.json","ETag":"09C5C8B1C15B87C668CC8C88E049443F","type":"json"},{"name":"8f491d4ddb9ce1b350717acd6996b1fa.json","size":5210078,"url":"https://gw.alipayobjects.com/os/f6/0f55fdd7-c4a4-4e7d-aedf-d3921d48db2c/demo/dependencies/herbox/8f491d4ddb9ce1b350717acd6996b1fa.json","ETag":"8F491D4DDB9CE1B350717ACD6996B1FA","type":"json"}],"sourceCode":{"app.acss":"page {\n background: #f7f7f7;\n}\n","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":"{\n \"pages\": [\n \"pages/index/index\"\n ],\n \"window\": {\n \"defaultTitle\": \"F6 demo\"\n }\n}\n","mini.project.json":"{\n \"enableAppxNg\": true,\n \"component2\": true\n}","package.json":"{\n \"name\": \"f6-demo\",\n \"version\": \"1.0.0\",\n \"description\": \"\",\n \"main\": \"app.js\",\n \"scripts\": {\n \"test\": \"echo \\\"Error: no test specified\\\" && exit 1\"\n },\n \"author\": \"\",\n \"license\": \"ISC\",\n \"dependencies\": {\n \"@antv/f6\": \"^0.0.4\",\n \"@antv/f6-alipay\": \"^0.0.1\",\n \"@babel/runtime\": \"^7.14.0\"\n }\n}\n","pages/index/data.js":"export default {\n id: 'Modeling Methods',\n children: [\n {\n id: 'Classification',\n children: [\n {\n id: 'Logistic regression',\n },\n {\n id: 'Linear discriminant analysis',\n },\n ],\n },\n {\n id: 'Consensus',\n children: [\n {\n id: 'Common',\n children: [\n {\n id: 'Bagging',\n },\n {\n id: 'Boosting',\n },\n {\n id: 'AdaBoost',\n },\n ],\n },\n ],\n },\n ],\n};\n","pages/index/index.acss":"/* required by usingComponents */","pages/index/index.axml":"<native-canvas\n width=\"{{width}}\"\n height=\"{{height}}\"\n forceMini=\"{{false}}\"\n pixelRatio=\"{{pixelRatio}}\"\n onInit=\"onCanvasInit\"\n onTouchEvent=\"onTouch\"\n/>\n","pages/index/index.js":"import F6 from '@antv/f6';\nimport graphData from './data';\nimport dagreLayout from '@antv/f6/dist/extends/layout/dagreLayout';\nimport TreeGraph from '@antv/f6/dist/extends/graph/treeGraph';\n\nF6.registerLayout('dagreLayout', dagreLayout);\nF6.registerGraph('TreeGraph', TreeGraph);\n\nPage({\n data: {\n width: 300,\n height: 400,\n pixelRatio: 1,\n },\n onLoad() {\n const { windowWidth, windowHeight, pixelRatio } = my.getSystemInfoSync();\n this.setData({\n width: windowWidth,\n height: windowHeight,\n pixelRatio: pixelRatio,\n });\n },\n onCanvasInit(ctx, rect, canvas, renderer) {\n console.log(ctx, rect, canvas, renderer);\n this.graph = new F6.TreeGraph({\n context: ctx,\n renderer,\n width: this.data.width,\n height: this.data.height,\n linkCenter: true,\n modes: {\n default: [\n 'drag-canvas',\n 'zoom-canvas',\n ],\n },\n defaultNode: {\n size: 40,\n },\n layout: {\n type: 'compactBox',\n direction: 'RL',\n getId: function getId(d) {\n return d.id;\n },\n getHeight: () => {\n return 26;\n },\n getWidth: () => {\n return 26;\n },\n getVGap: () => {\n return 20;\n },\n getHGap: () => {\n return 30;\n },\n radial: false,\n },\n });\n\n this.graph.node(function (node) {\n return {\n label: node.id,\n };\n });\n\n this.graph.data(graphData);\n this.graph.render();\n this.graph.fitView();\n },\n onTouch(e) {\n this.graph.emitEvent(e);\n },\n});\n","pages/index/index.json":"{\n \"defaultTitle\": \"f6-demo\",\n \"usingComponents\": {\n \"native-canvas\": \"@antv/f6-alipay/es/g6-component/g6-component\"\n }\n}"},"dist":[{"name":"242025bdc1ebae7aec7c8fe599f1d534.json","size":834490,"url":"https://gw.alipayobjects.com/os/f6/27004011-28c5-429d-949b-01078f55252c/demo/dist/herbox/242025bdc1ebae7aec7c8fe599f1d534.json","ETag":"242025BDC1EBAE7AEC7C8FE599F1D534","type":"json"}],"name":"f6-demo","description":"","buildVersion":"0.72.7","remaxVersion":"2.0.3","component2":false,"css2":false}