{"dependencies":[{"name":"78f9fc7ed987bf72f0fae6b99573fddb.json","size":10993386,"url":"https://gw.alipayobjects.com/os/f6/8781351f-9813-4c39-8980-ea425996faeb/demo_generalgraph_basicarcdiagram/dependencies/herbox/78f9fc7ed987bf72f0fae6b99573fddb.json","ETag":"78F9FC7ED987BF72F0FAE6B99573FDDB","type":"json"},{"name":"0d7b758fdc47c7af5db47deeda4d99d4.json","size":5210534,"url":"https://gw.alipayobjects.com/os/f6/3f3baffa-2c16-44e7-83a9-c5209bdabed1/demo_generalgraph_basicarcdiagram/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/basicArcDiagram/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/basicArcDiagram/data.js":"export default {\n nodes: [\n {\n id: '0',\n name: 'analytics.cluster',\n cluster: 'analytics',\n value: 21,\n },\n {\n id: '1',\n name: 'analytics.graph',\n cluster: 'analytics',\n value: 34,\n },\n {\n id: '2',\n name: 'analytics.optimization',\n cluster: 'analytics',\n value: 8,\n },\n {\n id: '3',\n name: 'animate',\n cluster: 'animate',\n value: 40,\n },\n {\n id: '4',\n name: 'animate.interpolate',\n cluster: 'animate',\n value: 18,\n },\n {\n id: '5',\n name: 'data.converters',\n cluster: 'data',\n value: 25,\n },\n {\n id: '6',\n name: 'data',\n cluster: 'data',\n value: 10,\n },\n {\n id: '7',\n name: 'display',\n cluster: 'display',\n value: 4,\n },\n {\n id: '8',\n name: 'flex',\n cluster: 'flex',\n value: 6,\n },\n {\n id: '9',\n name: 'physics',\n cluster: 'physics',\n value: 22,\n },\n {\n id: '10',\n name: 'query',\n cluster: 'query',\n value: 67,\n },\n {\n id: '11',\n name: 'query.methods',\n cluster: 'query',\n value: 71,\n },\n {\n id: '12',\n name: 'scale',\n cluster: 'scale',\n value: 33,\n },\n {\n id: '13',\n name: 'util',\n cluster: 'util',\n value: 23,\n },\n {\n id: '14',\n name: 'util.heap',\n cluster: 'util',\n value: 2,\n },\n {\n id: '15',\n cluster: 'util',\n name: 'util.math',\n value: 2,\n },\n {\n id: '16',\n name: 'util.palette',\n cluster: 'util',\n value: 5,\n },\n {\n id: '17',\n name: 'vis.axis',\n cluster: 'vis',\n value: 24,\n },\n {\n id: '18',\n name: 'vis.controls',\n cluster: 'vis',\n value: 28,\n },\n {\n id: '19',\n name: 'vis.data',\n cluster: 'vis',\n value: 70,\n },\n {\n id: '20',\n name: 'vis.data.render',\n cluster: 'vis',\n value: 11,\n },\n {\n id: '21',\n name: 'vis.events',\n cluster: 'vis',\n value: 8,\n },\n {\n id: '22',\n name: 'vis.legend',\n cluster: 'vis',\n value: 27,\n },\n {\n id: '23',\n name: 'vis.operator.distortion',\n cluster: 'vis',\n value: 9,\n },\n {\n id: '24',\n name: 'vis.operator.encoder',\n cluster: 'vis',\n value: 30,\n },\n {\n id: '25',\n name: 'vis.operator.filter',\n cluster: 'vis',\n value: 17,\n },\n {\n id: '26',\n name: 'vis.operator',\n cluster: 'vis',\n value: 27,\n },\n {\n id: '27',\n name: 'vis.operator.label',\n cluster: 'vis',\n value: 18,\n },\n {\n id: '28',\n name: 'vis.operator.layout',\n cluster: 'vis',\n value: 91,\n },\n {\n id: '29',\n name: 'vis',\n cluster: 'vis',\n value: 13,\n },\n ],\n edges: [\n {\n source: '10',\n target: '10',\n sourceWeight: 61,\n targetWeight: 61,\n },\n {\n source: '11',\n target: '11',\n sourceWeight: 39,\n targetWeight: 39,\n },\n {\n source: '3',\n target: '3',\n sourceWeight: 30,\n targetWeight: 30,\n },\n {\n source: '19',\n target: '19',\n sourceWeight: 26,\n targetWeight: 26,\n },\n {\n source: '13',\n target: '13',\n sourceWeight: 23,\n targetWeight: 23,\n },\n {\n source: '9',\n target: '9',\n sourceWeight: 22,\n targetWeight: 22,\n },\n {\n source: '12',\n target: '12',\n sourceWeight: 19,\n targetWeight: 19,\n },\n {\n source: '28',\n target: '19',\n sourceWeight: 34,\n targetWeight: 0,\n },\n {\n source: '4',\n target: '4',\n sourceWeight: 16,\n targetWeight: 16,\n },\n {\n source: '11',\n target: '10',\n sourceWeight: 32,\n targetWeight: 0,\n },\n {\n source: '28',\n target: '28',\n sourceWeight: 14,\n targetWeight: 14,\n },\n {\n source: '18',\n target: '18',\n sourceWeight: 12,\n targetWeight: 12,\n },\n {\n source: '26',\n target: '26',\n sourceWeight: 11,\n targetWeight: 11,\n },\n {\n source: '28',\n target: '13',\n sourceWeight: 20,\n targetWeight: 0,\n },\n {\n source: '5',\n target: '6',\n sourceWeight: 17,\n targetWeight: 2,\n },\n {\n source: '19',\n target: '13',\n sourceWeight: 17,\n targetWeight: 0,\n },\n {\n source: '17',\n target: '17',\n sourceWeight: 7,\n targetWeight: 7,\n },\n {\n source: '6',\n target: '6',\n sourceWeight: 7,\n targetWeight: 7,\n },\n {\n source: '12',\n target: '13',\n sourceWeight: 14,\n targetWeight: 0,\n },\n {\n source: '1',\n target: '19',\n sourceWeight: 14,\n targetWeight: 0,\n },\n {\n source: '5',\n target: '5',\n sourceWeight: 7,\n targetWeight: 7,\n },\n {\n source: '21',\n target: '19',\n sourceWeight: 6,\n targetWeight: 4,\n },\n {\n source: '25',\n target: '19',\n sourceWeight: 10,\n targetWeight: 0,\n },\n {\n source: '0',\n target: '0',\n sourceWeight: 5,\n targetWeight: 5,\n },\n {\n source: '3',\n target: '13',\n sourceWeight: 9,\n targetWeight: 0,\n },\n {\n source: '20',\n target: '19',\n sourceWeight: 5,\n targetWeight: 4,\n },\n {\n source: '19',\n target: '12',\n sourceWeight: 9,\n targetWeight: 0,\n },\n {\n source: '0',\n target: '19',\n sourceWeight: 8,\n targetWeight: 0,\n },\n {\n source: '24',\n target: '19',\n sourceWeight: 8,\n targetWeight: 0,\n },\n {\n source: '22',\n target: '22',\n sourceWeight: 4,\n targetWeight: 4,\n },\n {\n source: '24',\n target: '24',\n sourceWeight: 4,\n targetWeight: 4,\n },\n {\n source: '26',\n target: '3',\n sourceWeight: 7,\n targetWeight: 0,\n },\n {\n source: '24',\n target: '16',\n sourceWeight: 7,\n targetWeight: 0,\n },\n {\n source: '16',\n target: '16',\n sourceWeight: 3,\n targetWeight: 3,\n },\n {\n source: '10',\n target: '13',\n sourceWeight: 6,\n targetWeight: 0,\n },\n {\n source: '7',\n target: '7',\n sourceWeight: 3,\n targetWeight: 3,\n },\n {\n source: '22',\n target: '13',\n sourceWeight: 6,\n targetWeight: 0,\n },\n {\n source: '20',\n target: '20',\n sourceWeight: 3,\n targetWeight: 3,\n },\n {\n source: '1',\n target: '26',\n sourceWeight: 6,\n targetWeight: 0,\n },\n {\n source: '27',\n target: '19',\n sourceWeight: 6,\n targetWeight: 0,\n },\n {\n source: '28',\n target: '12',\n sourceWeight: 6,\n targetWeight: 0,\n },\n {\n source: '22',\n target: '7',\n sourceWeight: 6,\n targetWeight: 0,\n },\n {\n source: '28',\n target: '3',\n sourceWeight: 6,\n targetWeight: 0,\n },\n {\n source: '17',\n target: '7',\n sourceWeight: 5,\n targetWeight: 0,\n },\n {\n source: '26',\n target: '13',\n sourceWeight: 5,\n targetWeight: 0,\n },\n {\n source: '27',\n target: '13',\n sourceWeight: 5,\n targetWeight: 0,\n },\n {\n source: '1',\n target: '13',\n sourceWeight: 5,\n targetWeight: 0,\n },\n {\n source: '1',\n target: '3',\n sourceWeight: 5,\n targetWeight: 0,\n },\n {\n source: '26',\n target: '29',\n sourceWeight: 3,\n targetWeight: 2,\n },\n {\n source: '22',\n target: '16',\n sourceWeight: 5,\n targetWeight: 0,\n },\n {\n source: '18',\n target: '21',\n sourceWeight: 4,\n targetWeight: 0,\n },\n {\n source: '22',\n target: '12',\n sourceWeight: 4,\n targetWeight: 0,\n },\n {\n source: '23',\n target: '23',\n sourceWeight: 2,\n targetWeight: 2,\n },\n {\n source: '17',\n target: '29',\n sourceWeight: 2,\n targetWeight: 2,\n },\n {\n source: '28',\n target: '17',\n sourceWeight: 4,\n targetWeight: 0,\n },\n {\n source: '15',\n target: '15',\n sourceWeight: 2,\n targetWeight: 2,\n },\n {\n source: '17',\n target: '12',\n sourceWeight: 4,\n targetWeight: 0,\n },\n {\n source: '27',\n target: '27',\n sourceWeight: 2,\n targetWeight: 2,\n },\n {\n source: '14',\n target: '14',\n sourceWeight: 2,\n targetWeight: 2,\n },\n {\n source: '18',\n target: '29',\n sourceWeight: 3,\n targetWeight: 1,\n },\n {\n source: '25',\n target: '26',\n sourceWeight: 3,\n targetWeight: 0,\n },\n {\n source: '28',\n target: '9',\n sourceWeight: 3,\n targetWeight: 0,\n },\n {\n source: '27',\n target: '7',\n sourceWeight: 3,\n targetWeight: 0,\n },\n {\n source: '24',\n target: '12',\n sourceWeight: 3,\n targetWeight: 0,\n },\n {\n source: '17',\n target: '13',\n sourceWeight: 3,\n targetWeight: 0,\n },\n {\n source: '18',\n target: '13',\n sourceWeight: 3,\n targetWeight: 0,\n },\n {\n source: '20',\n target: '13',\n sourceWeight: 3,\n targetWeight: 0,\n },\n {\n source: '0',\n target: '13',\n sourceWeight: 3,\n targetWeight: 0,\n },\n {\n source: '24',\n target: '13',\n sourceWeight: 3,\n targetWeight: 0,\n },\n {\n source: '19',\n target: '6',\n sourceWeight: 3,\n targetWeight: 0,\n },\n {\n source: '29',\n target: '3',\n sourceWeight: 3,\n targetWeight: 0,\n },\n {\n source: '25',\n target: '3',\n sourceWeight: 3,\n targetWeight: 0,\n },\n {\n source: '24',\n target: '3',\n sourceWeight: 3,\n targetWeight: 0,\n },\n {\n source: '17',\n target: '3',\n sourceWeight: 3,\n targetWeight: 0,\n },\n {\n source: '0',\n target: '15',\n sourceWeight: 2,\n targetWeight: 0,\n },\n {\n source: '28',\n target: '26',\n sourceWeight: 2,\n targetWeight: 0,\n },\n {\n source: '24',\n target: '26',\n sourceWeight: 2,\n targetWeight: 0,\n },\n {\n source: '16',\n target: '13',\n sourceWeight: 2,\n targetWeight: 0,\n },\n {\n source: '1',\n target: '14',\n sourceWeight: 2,\n targetWeight: 0,\n },\n {\n source: '29',\n target: '21',\n sourceWeight: 2,\n targetWeight: 0,\n },\n {\n source: '21',\n target: '21',\n sourceWeight: 1,\n targetWeight: 1,\n },\n {\n source: '29',\n target: '19',\n sourceWeight: 2,\n targetWeight: 0,\n },\n {\n source: '19',\n target: '14',\n sourceWeight: 2,\n targetWeight: 0,\n },\n {\n source: '4',\n target: '13',\n sourceWeight: 2,\n targetWeight: 0,\n },\n {\n source: '19',\n target: '15',\n sourceWeight: 2,\n targetWeight: 0,\n },\n {\n source: '8',\n target: '17',\n sourceWeight: 2,\n targetWeight: 0,\n },\n {\n source: '2',\n target: '13',\n sourceWeight: 2,\n targetWeight: 0,\n },\n {\n source: '18',\n target: '19',\n sourceWeight: 2,\n targetWeight: 0,\n },\n {\n source: '1',\n target: '1',\n sourceWeight: 1,\n targetWeight: 1,\n },\n {\n source: '23',\n target: '17',\n sourceWeight: 2,\n targetWeight: 0,\n },\n {\n source: '23',\n target: '19',\n sourceWeight: 2,\n targetWeight: 0,\n },\n {\n source: '0',\n target: '3',\n sourceWeight: 2,\n targetWeight: 0,\n },\n {\n source: '18',\n target: '3',\n sourceWeight: 2,\n targetWeight: 0,\n },\n {\n source: '19',\n target: '3',\n sourceWeight: 2,\n targetWeight: 0,\n },\n {\n source: '29',\n target: '13',\n sourceWeight: 1,\n targetWeight: 0,\n },\n {\n source: '8',\n target: '29',\n sourceWeight: 1,\n targetWeight: 0,\n },\n {\n source: '21',\n target: '3',\n sourceWeight: 1,\n targetWeight: 0,\n },\n {\n source: '22',\n target: '3',\n sourceWeight: 1,\n targetWeight: 0,\n },\n {\n source: '3',\n target: '4',\n sourceWeight: 1,\n targetWeight: 0,\n },\n {\n source: '2',\n target: '29',\n sourceWeight: 1,\n targetWeight: 0,\n },\n {\n source: '22',\n target: '19',\n sourceWeight: 1,\n targetWeight: 0,\n },\n {\n source: '23',\n target: '3',\n sourceWeight: 1,\n targetWeight: 0,\n },\n {\n source: '2',\n target: '26',\n sourceWeight: 1,\n targetWeight: 0,\n },\n {\n source: '2',\n target: '19',\n sourceWeight: 1,\n targetWeight: 0,\n },\n {\n source: '26',\n target: '19',\n sourceWeight: 1,\n targetWeight: 0,\n },\n {\n source: '2',\n target: '17',\n sourceWeight: 1,\n targetWeight: 0,\n },\n {\n source: '27',\n target: '3',\n sourceWeight: 1,\n targetWeight: 0,\n },\n {\n source: '5',\n target: '13',\n sourceWeight: 1,\n targetWeight: 0,\n },\n {\n source: '2',\n target: '12',\n sourceWeight: 1,\n targetWeight: 0,\n },\n {\n source: '28',\n target: '20',\n sourceWeight: 1,\n targetWeight: 0,\n },\n {\n source: '18',\n target: '28',\n sourceWeight: 1,\n targetWeight: 0,\n },\n {\n source: '23',\n target: '21',\n sourceWeight: 1,\n targetWeight: 0,\n },\n {\n source: '8',\n target: '6',\n sourceWeight: 1,\n targetWeight: 0,\n },\n {\n source: '2',\n target: '3',\n sourceWeight: 1,\n targetWeight: 0,\n },\n {\n source: '1',\n target: '29',\n sourceWeight: 1,\n targetWeight: 0,\n },\n {\n source: '23',\n target: '28',\n sourceWeight: 1,\n targetWeight: 0,\n },\n {\n source: '6',\n target: '13',\n sourceWeight: 1,\n targetWeight: 0,\n },\n {\n source: '25',\n target: '13',\n sourceWeight: 1,\n targetWeight: 0,\n },\n {\n source: '8',\n target: '7',\n sourceWeight: 1,\n targetWeight: 0,\n },\n {\n source: '7',\n target: '13',\n sourceWeight: 1,\n targetWeight: 0,\n },\n {\n source: '27',\n target: '26',\n sourceWeight: 1,\n targetWeight: 0,\n },\n {\n source: '18',\n target: '7',\n sourceWeight: 1,\n targetWeight: 0,\n },\n {\n source: '0',\n target: '26',\n sourceWeight: 1,\n targetWeight: 0,\n },\n {\n source: '19',\n target: '7',\n sourceWeight: 1,\n targetWeight: 0,\n },\n {\n source: '8',\n target: '19',\n sourceWeight: 1,\n targetWeight: 0,\n },\n {\n source: '28',\n target: '29',\n sourceWeight: 1,\n targetWeight: 0,\n },\n ],\n};\n","pages/GeneralGraph/basicArcDiagram/index.acss":"/* required by usingComponents */","pages/GeneralGraph/basicArcDiagram/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/basicArcDiagram/index.js":"import F6 from '@antv/f6';\nimport { wrapContext } from '../../../utils/context';\nimport data from './data';\nimport mds from '@antv/f6/dist/extends/layout/mdsLayout';\n/**\n * basicArcDiagram\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('mds', mds);\n\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 // 定义颜色\n const colors = [\n 'rgb(91, 143, 249)',\n 'rgb(90, 216, 166)',\n 'rgb(93, 112, 146)',\n 'rgb(246, 189, 22)',\n 'rgb(232, 104, 74)',\n 'rgb(109, 200, 236)',\n 'rgb(146, 112, 202)',\n 'rgb(255, 157, 77)',\n 'rgb(38, 154, 153)',\n 'rgb(227, 137, 163)',\n ];\n\n // 后面会用到的函数\n function scaleNodeProp(nodes, propName, refPropName, dataRange, outRange) {\n const outLength = outRange[1] - outRange[0];\n const dataLength = dataRange[1] - dataRange[0];\n nodes.forEach(function(n) {\n n[propName] = ((n[refPropName] - dataRange[0]) * outLength) / dataLength + outRange[0];\n });\n }\n\n // 创建F6实例\n this.graph = new F6.Graph({\n context: this.ctx,\n renderer: this.renderer,\n width,\n height,\n pixelRatio,\n linkCenter: true,\n fitView: true,\n modes: {\n default: [\n {\n type: 'edge-tooltip',\n formatText: function formatText(model) {\n const text = `source: ${model.sourceName}<br/> target: ${model.targetName}`;\n return text;\n },\n },\n ],\n },\n defaultNode: {\n style: {\n opacity: 0.8,\n lineWidth: 1,\n stroke: '#999',\n },\n },\n defaultEdge: {\n size: 1,\n color: '#e2e2e2',\n style: {\n opacity: 0.6,\n lineAppendWidth: 3,\n },\n },\n });\n\n // 订阅事件\n this.graph.on('edge:mouseenter', function(e) {\n const edge = e.item;\n this.graph.setItemState(edge, 'hover', true);\n });\n this.graph.on('edge:mouseleave', function(e) {\n const edge = e.item;\n this.graph.setItemState(edge, 'hover', false);\n });\n\n // 处理数据\n const { edges } = data;\n const { nodes } = data;\n const nodeMap = new Map();\n const clusterMap = new Map();\n let clusterId = 0;\n const n = nodes.length;\n const horiPadding = 10;\n const begin = [horiPadding, height * 0.7];\n const end = [width - horiPadding, height * 0.7];\n const xLength = end[0] - begin[0];\n const yLength = end[1] - begin[1];\n const xSep = xLength / n;\n const ySep = yLength / n;\n nodes.forEach(function(node, i) {\n node.x = begin[0] + i * xSep;\n node.y = begin[1] + i * ySep;\n nodeMap.set(node.id, node);\n // cluster\n if (node.cluster && clusterMap.get(node.cluster) === undefined) {\n clusterMap.set(node.cluster, clusterId);\n clusterId++;\n }\n const id = clusterMap.get(node.cluster);\n if (node.style) {\n node.style.fill = colors[id % colors.length];\n } else {\n node.style = {\n fill: colors[id % colors.length],\n };\n }\n // label\n node.label = node.name;\n node.labelCfg = {\n position: 'bottom',\n offset: 5,\n style: {\n rotate: Math.PI / 2,\n textAlign: 'start',\n },\n };\n });\n edges.forEach((edge) => {\n edge.type = 'arc';\n const source = nodeMap.get(edge.source);\n const target = nodeMap.get(edge.target);\n const endsSepStep = (target.x - source.x) / xSep;\n const sign = endsSepStep < 0 ? -1 : 1;\n const curveOffset = sign * 10 * Math.ceil(Math.abs(endsSepStep));\n edge.curveOffset = curveOffset;\n edge.color = source.style.fill;\n edge.sourceName = source.name;\n edge.targetName = target.name;\n });\n\n // map the value to node size\n let maxValue = -9999;\n let minValue = 9999;\n nodes.forEach(function(k) {\n if (maxValue < k.value) maxValue = k.value;\n if (minValue > k.value) minValue = k.value;\n });\n const sizeRange = [3, 25];\n const sizeDataRange = [minValue, maxValue];\n scaleNodeProp(nodes, 'size', 'value', sizeDataRange, sizeRange);\n\n this.graph.data(data);\n this.graph.render();\n this.graph.fitView();\n },\n});\n","pages/GeneralGraph/basicArcDiagram/index.json":"{\n \"defaultTitle\": \"basicArcDiagram\",\n \"usingComponents\": {\n \"f6-canvas\": \"@antv/f6-alipay/es/container/container\"\n }\n}\n","pages/GeneralGraph/basicArcDiagram/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":"461a5eb6329ff69edfe1cbc45fb426cb.json","size":808940,"url":"https://gw.alipayobjects.com/os/f6/ae2d1f81-bcaa-45cd-8c2c-25947522225a/demo_generalgraph_basicarcdiagram/dist/herbox/461a5eb6329ff69edfe1cbc45fb426cb.json","ETag":"461A5EB6329FF69EDFE1CBC45FB426CB","type":"json"}],"name":"pages/GeneralGraph/basicArcDiagram/index","buildVersion":"0.72.7","remaxVersion":"2.0.3","component2":false,"css2":false}