1 line
21 KiB
JSON
1 line
21 KiB
JSON
{"ast":null,"code":"/*\r\n* Licensed to the Apache Software Foundation (ASF) under one\r\n* or more contributor license agreements. See the NOTICE file\r\n* distributed with this work for additional information\r\n* regarding copyright ownership. The ASF licenses this file\r\n* to you under the Apache License, Version 2.0 (the\r\n* \"License\"); you may not use this file except in compliance\r\n* with the License. You may obtain a copy of the License at\r\n*\r\n* http://www.apache.org/licenses/LICENSE-2.0\r\n*\r\n* Unless required by applicable law or agreed to in writing,\r\n* software distributed under the License is distributed on an\r\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\n* KIND, either express or implied. See the License for the\r\n* specific language governing permissions and limitations\r\n* under the License.\r\n*/\n\n/**\r\n * AUTO-GENERATED FILE. DO NOT MODIFY.\r\n */\n\n/*\r\n* Licensed to the Apache Software Foundation (ASF) under one\r\n* or more contributor license agreements. See the NOTICE file\r\n* distributed with this work for additional information\r\n* regarding copyright ownership. The ASF licenses this file\r\n* to you under the Apache License, Version 2.0 (the\r\n* \"License\"); you may not use this file except in compliance\r\n* with the License. You may obtain a copy of the License at\r\n*\r\n* http://www.apache.org/licenses/LICENSE-2.0\r\n*\r\n* Unless required by applicable law or agreed to in writing,\r\n* software distributed under the License is distributed on an\r\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\n* KIND, either express or implied. See the License for the\r\n* specific language governing permissions and limitations\r\n* under the License.\r\n*/\nimport { __extends } from \"tslib\";\nimport createSeriesDataSimply from '../helper/createSeriesDataSimply.js';\nimport * as zrUtil from 'zrender/lib/core/util.js';\nimport * as modelUtil from '../../util/model.js';\nimport { getPercentWithPrecision } from '../../util/number.js';\nimport { makeSeriesEncodeForNameBased } from '../../data/helper/sourceHelper.js';\nimport LegendVisualProvider from '../../visual/LegendVisualProvider.js';\nimport SeriesModel from '../../model/Series.js';\n\nvar PieSeriesModel =\n/** @class */\nfunction (_super) {\n __extends(PieSeriesModel, _super);\n\n function PieSeriesModel() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n /**\r\n * @overwrite\r\n */\n\n\n PieSeriesModel.prototype.init = function (option) {\n _super.prototype.init.apply(this, arguments); // Enable legend selection for each data item\n // Use a function instead of direct access because data reference may changed\n\n\n this.legendVisualProvider = new LegendVisualProvider(zrUtil.bind(this.getData, this), zrUtil.bind(this.getRawData, this));\n\n this._defaultLabelLine(option);\n };\n /**\r\n * @overwrite\r\n */\n\n\n PieSeriesModel.prototype.mergeOption = function () {\n _super.prototype.mergeOption.apply(this, arguments);\n };\n /**\r\n * @overwrite\r\n */\n\n\n PieSeriesModel.prototype.getInitialData = function () {\n return createSeriesDataSimply(this, {\n coordDimensions: ['value'],\n encodeDefaulter: zrUtil.curry(makeSeriesEncodeForNameBased, this)\n });\n };\n /**\r\n * @overwrite\r\n */\n\n\n PieSeriesModel.prototype.getDataParams = function (dataIndex) {\n var data = this.getData();\n\n var params = _super.prototype.getDataParams.call(this, dataIndex); // FIXME toFixed?\n\n\n var valueList = [];\n data.each(data.mapDimension('value'), function (value) {\n valueList.push(value);\n });\n params.percent = getPercentWithPrecision(valueList, dataIndex, data.hostModel.get('percentPrecision'));\n params.$vars.push('percent');\n return params;\n };\n\n PieSeriesModel.prototype._defaultLabelLine = function (option) {\n // Extend labelLine emphasis\n modelUtil.defaultEmphasis(option, 'labelLine', ['show']);\n var labelLineNormalOpt = option.labelLine;\n var labelLineEmphasisOpt = option.emphasis.labelLine; // Not show label line if `label.normal.show = false`\n\n labelLineNormalOpt.show = labelLineNormalOpt.show && option.label.show;\n labelLineEmphasisOpt.show = labelLineEmphasisOpt.show && option.emphasis.label.show;\n };\n\n PieSeriesModel.type = 'series.pie';\n PieSeriesModel.defaultOption = {\n // zlevel: 0,\n z: 2,\n legendHoverLink: true,\n colorBy: 'data',\n // 默认全局居中\n center: ['50%', '50%'],\n radius: [0, '75%'],\n // 默认顺时针\n clockwise: true,\n startAngle: 90,\n // 最小角度改为0\n minAngle: 0,\n // If the angle of a sector less than `minShowLabelAngle`,\n // the label will not be displayed.\n minShowLabelAngle: 0,\n // 选中时扇区偏移量\n selectedOffset: 10,\n // 选择模式,默认关闭,可选single,multiple\n // selectedMode: false,\n // 南丁格尔玫瑰图模式,'radius'(半径) | 'area'(面积)\n // roseType: null,\n percentPrecision: 2,\n // If still show when all data zero.\n stillShowZeroSum: true,\n // cursor: null,\n left: 0,\n top: 0,\n right: 0,\n bottom: 0,\n width: null,\n height: null,\n label: {\n // color: 'inherit',\n // If rotate around circle\n rotate: 0,\n show: true,\n overflow: 'truncate',\n // 'outer', 'inside', 'center'\n position: 'outer',\n // 'none', 'labelLine', 'edge'. Works only when position is 'outer'\n alignTo: 'none',\n // Closest distance between label and chart edge.\n // Works only position is 'outer' and alignTo is 'edge'.\n edgeDistance: '25%',\n // Works only position is 'outer' and alignTo is not 'edge'.\n bleedMargin: 10,\n // Distance between text and label line.\n distanceToLabelLine: 5 // formatter: 标签文本格式器,同Tooltip.formatter,不支持异步回调\n // 默认使用全局文本样式,详见TEXTSTYLE\n // distance: 当position为inner时有效,为label位置到圆心的距离与圆半径(环状图为内外半径和)的比例系数\n\n },\n // Enabled when label.normal.position is 'outer'\n labelLine: {\n show: true,\n // 引导线两段中的第一段长度\n length: 15,\n // 引导线两段中的第二段长度\n length2: 15,\n smooth: false,\n minTurnAngle: 90,\n maxSurfaceAngle: 90,\n lineStyle: {\n // color: 各异,\n width: 1,\n type: 'solid'\n }\n },\n itemStyle: {\n borderWidth: 1,\n borderJoin: 'round'\n },\n showEmptyCircle: true,\n emptyCircleStyle: {\n color: 'lightgray',\n opacity: 1\n },\n labelLayout: {\n // Hide the overlapped label.\n hideOverlap: true\n },\n emphasis: {\n scale: true,\n scaleSize: 5\n },\n // If use strategy to avoid label overlapping\n avoidLabelOverlap: true,\n // Animation type. Valid values: expansion, scale\n animationType: 'expansion',\n animationDuration: 1000,\n // Animation type when update. Valid values: transition, expansion\n animationTypeUpdate: 'transition',\n animationEasingUpdate: 'cubicInOut',\n animationDurationUpdate: 500,\n animationEasing: 'cubicInOut'\n };\n return PieSeriesModel;\n}(SeriesModel);\n\nexport default PieSeriesModel;","map":{"version":3,"sources":["D:/Work/WorkSpace/GitWorkSpace/TenShop/resource/ElectronicMall/src/qingge-Market/qingge-vue/node_modules/echarts/lib/chart/pie/PieSeries.js"],"names":["__extends","createSeriesDataSimply","zrUtil","modelUtil","getPercentWithPrecision","makeSeriesEncodeForNameBased","LegendVisualProvider","SeriesModel","PieSeriesModel","_super","apply","arguments","prototype","init","option","legendVisualProvider","bind","getData","getRawData","_defaultLabelLine","mergeOption","getInitialData","coordDimensions","encodeDefaulter","curry","getDataParams","dataIndex","data","params","call","valueList","each","mapDimension","value","push","percent","hostModel","get","$vars","defaultEmphasis","labelLineNormalOpt","labelLine","labelLineEmphasisOpt","emphasis","show","label","type","defaultOption","z","legendHoverLink","colorBy","center","radius","clockwise","startAngle","minAngle","minShowLabelAngle","selectedOffset","percentPrecision","stillShowZeroSum","left","top","right","bottom","width","height","rotate","overflow","position","alignTo","edgeDistance","bleedMargin","distanceToLabelLine","length","length2","smooth","minTurnAngle","maxSurfaceAngle","lineStyle","itemStyle","borderWidth","borderJoin","showEmptyCircle","emptyCircleStyle","color","opacity","labelLayout","hideOverlap","scale","scaleSize","avoidLabelOverlap","animationType","animationDuration","animationTypeUpdate","animationEasingUpdate","animationDurationUpdate","animationEasing"],"mappings":"AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAGA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,SAAT,QAA0B,OAA1B;AACA,OAAOC,sBAAP,MAAmC,qCAAnC;AACA,OAAO,KAAKC,MAAZ,MAAwB,0BAAxB;AACA,OAAO,KAAKC,SAAZ,MAA2B,qBAA3B;AACA,SAASC,uBAAT,QAAw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hBhB,CAgBkB;AACvB;AACA;;AAlBK,KAhCsB;AAqD7B;AACA/B,IAAAA,SAAS,EAAE;AACTG,MAAAA,IAAI,EAAE,IADG;AAET;AACA6B,MAAAA,MAAM,EAAE,EAHC;AAIT;AACAC,MAAAA,OAAO,EAAE,EALA;AAMTC,MAAAA,MAAM,EAAE,KANC;AAOTC,MAAAA,YAAY,EAAE,EAPL;AAQTC,MAAAA,eAAe,EAAE,EARR;AASTC,MAAAA,SAAS,EAAE;AACT;AACAd,QAAAA,KAAK,EAAE,CAFE;AAGTlB,QAAAA,IAAI,EAAE;AAHG;AATF,KAtDkB;AAqE7BiC,IAAAA,SAAS,EAAE;AACTC,MAAAA,WAAW,EAAE,CADJ;AAETC,MAAAA,UAAU,EAAE;AAFH,KArEkB;AAyE7BC,IAAAA,eAAe,EAAE,IAzEY;AA0E7BC,IAAAA,gBAAgB,EAAE;AAChBC,MAAAA,KAAK,EAAE,WADS;AAEhBC,MAAAA,OAAO,EAAE;AAFO,KA1EW;AA8E7BC,IAAAA,WAAW,EAAE;AACX;AACAC,MAAAA,WAAW,EAAE;AAFF,KA9EgB;AAkF7B5C,IAAAA,QAAQ,EAAE;AACR6C,MAAAA,KAAK,EAAE,IADC;AAERC,MAAAA,SAAS,EAAE;AAFH,KAlFmB;AAsF7B;AACAC,IAAAA,iBAAiB,EAAE,IAvFU;AAwF7B;AACAC,IAAAA,aAAa,EAAE,WAzFc;AA0F7BC,IAAAA,iBAAiB,EAAE,IA1FU;AA2F7B;AACAC,IAAAA,mBAAmB,EAAE,YA5FQ;AA6F7BC,IAAAA,qBAAqB,EAAE,YA7FM;AA8F7BC,IAAAA,uBAAuB,EAAE,GA9FI;AA+F7BC,IAAAA,eAAe,EAAE;AA/FY,GAA/B;AAiGA,SAAOxF,cAAP;AACD,CAxKD,CAwKED,WAxKF,CAFA;;AA4KA,eAAeC,cAAf","sourcesContent":["\r\n/*\r\n* Licensed to the Apache Software Foundation (ASF) under one\r\n* or more contributor license agreements. See the NOTICE file\r\n* distributed with this work for additional information\r\n* regarding copyright ownership. The ASF licenses this file\r\n* to you under the Apache License, Version 2.0 (the\r\n* \"License\"); you may not use this file except in compliance\r\n* with the License. You may obtain a copy of the License at\r\n*\r\n* http://www.apache.org/licenses/LICENSE-2.0\r\n*\r\n* Unless required by applicable law or agreed to in writing,\r\n* software distributed under the License is distributed on an\r\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\n* KIND, either express or implied. See the License for the\r\n* specific language governing permissions and limitations\r\n* under the License.\r\n*/\r\n\r\n\r\n/**\r\n * AUTO-GENERATED FILE. DO NOT MODIFY.\r\n */\r\n\r\n/*\r\n* Licensed to the Apache Software Foundation (ASF) under one\r\n* or more contributor license agreements. See the NOTICE file\r\n* distributed with this work for additional information\r\n* regarding copyright ownership. The ASF licenses this file\r\n* to you under the Apache License, Version 2.0 (the\r\n* \"License\"); you may not use this file except in compliance\r\n* with the License. You may obtain a copy of the License at\r\n*\r\n* http://www.apache.org/licenses/LICENSE-2.0\r\n*\r\n* Unless required by applicable law or agreed to in writing,\r\n* software distributed under the License is distributed on an\r\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\n* KIND, either express or implied. See the License for the\r\n* specific language governing permissions and limitations\r\n* under the License.\r\n*/\r\nimport { __extends } from \"tslib\";\r\nimport createSeriesDataSimply from '../helper/createSeriesDataSimply.js';\r\nimport * as zrUtil from 'zrender/lib/core/util.js';\r\nimport * as modelUtil from '../../util/model.js';\r\nimport { getPercentWithPrecision } from '../../util/number.js';\r\nimport { makeSeriesEncodeForNameBased } from '../../data/helper/sourceHelper.js';\r\nimport LegendVisualProvider from '../../visual/LegendVisualProvider.js';\r\nimport SeriesModel from '../../model/Series.js';\r\n\r\nvar PieSeriesModel =\r\n/** @class */\r\nfunction (_super) {\r\n __extends(PieSeriesModel, _super);\r\n\r\n function PieSeriesModel() {\r\n return _super !== null && _super.apply(this, arguments) || this;\r\n }\r\n /**\r\n * @overwrite\r\n */\r\n\r\n\r\n PieSeriesModel.prototype.init = function (option) {\r\n _super.prototype.init.apply(this, arguments); // Enable legend selection for each data item\r\n // Use a function instead of direct access because data reference may changed\r\n\r\n\r\n this.legendVisualProvider = new LegendVisualProvider(zrUtil.bind(this.getData, this), zrUtil.bind(this.getRawData, this));\r\n\r\n this._defaultLabelLine(option);\r\n };\r\n /**\r\n * @overwrite\r\n */\r\n\r\n\r\n PieSeriesModel.prototype.mergeOption = function () {\r\n _super.prototype.mergeOption.apply(this, arguments);\r\n };\r\n /**\r\n * @overwrite\r\n */\r\n\r\n\r\n PieSeriesModel.prototype.getInitialData = function () {\r\n return createSeriesDataSimply(this, {\r\n coordDimensions: ['value'],\r\n encodeDefaulter: zrUtil.curry(makeSeriesEncodeForNameBased, this)\r\n });\r\n };\r\n /**\r\n * @overwrite\r\n */\r\n\r\n\r\n PieSeriesModel.prototype.getDataParams = function (dataIndex) {\r\n var data = this.getData();\r\n\r\n var params = _super.prototype.getDataParams.call(this, dataIndex); // FIXME toFixed?\r\n\r\n\r\n var valueList = [];\r\n data.each(data.mapDimension('value'), function (value) {\r\n valueList.push(value);\r\n });\r\n params.percent = getPercentWithPrecision(valueList, dataIndex, data.hostModel.get('percentPrecision'));\r\n params.$vars.push('percent');\r\n return params;\r\n };\r\n\r\n PieSeriesModel.prototype._defaultLabelLine = function (option) {\r\n // Extend labelLine emphasis\r\n modelUtil.defaultEmphasis(option, 'labelLine', ['show']);\r\n var labelLineNormalOpt = option.labelLine;\r\n var labelLineEmphasisOpt = option.emphasis.labelLine; // Not show label line if `label.normal.show = false`\r\n\r\n labelLineNormalOpt.show = labelLineNormalOpt.show && option.label.show;\r\n labelLineEmphasisOpt.show = labelLineEmphasisOpt.show && option.emphasis.label.show;\r\n };\r\n\r\n PieSeriesModel.type = 'series.pie';\r\n PieSeriesModel.defaultOption = {\r\n // zlevel: 0,\r\n z: 2,\r\n legendHoverLink: true,\r\n colorBy: 'data',\r\n // 默认全局居中\r\n center: ['50%', '50%'],\r\n radius: [0, '75%'],\r\n // 默认顺时针\r\n clockwise: true,\r\n startAngle: 90,\r\n // 最小角度改为0\r\n minAngle: 0,\r\n // If the angle of a sector less than `minShowLabelAngle`,\r\n // the label will not be displayed.\r\n minShowLabelAngle: 0,\r\n // 选中时扇区偏移量\r\n selectedOffset: 10,\r\n // 选择模式,默认关闭,可选single,multiple\r\n // selectedMode: false,\r\n // 南丁格尔玫瑰图模式,'radius'(半径) | 'area'(面积)\r\n // roseType: null,\r\n percentPrecision: 2,\r\n // If still show when all data zero.\r\n stillShowZeroSum: true,\r\n // cursor: null,\r\n left: 0,\r\n top: 0,\r\n right: 0,\r\n bottom: 0,\r\n width: null,\r\n height: null,\r\n label: {\r\n // color: 'inherit',\r\n // If rotate around circle\r\n rotate: 0,\r\n show: true,\r\n overflow: 'truncate',\r\n // 'outer', 'inside', 'center'\r\n position: 'outer',\r\n // 'none', 'labelLine', 'edge'. Works only when position is 'outer'\r\n alignTo: 'none',\r\n // Closest distance between label and chart edge.\r\n // Works only position is 'outer' and alignTo is 'edge'.\r\n edgeDistance: '25%',\r\n // Works only position is 'outer' and alignTo is not 'edge'.\r\n bleedMargin: 10,\r\n // Distance between text and label line.\r\n distanceToLabelLine: 5 // formatter: 标签文本格式器,同Tooltip.formatter,不支持异步回调\r\n // 默认使用全局文本样式,详见TEXTSTYLE\r\n // distance: 当position为inner时有效,为label位置到圆心的距离与圆半径(环状图为内外半径和)的比例系数\r\n\r\n },\r\n // Enabled when label.normal.position is 'outer'\r\n labelLine: {\r\n show: true,\r\n // 引导线两段中的第一段长度\r\n length: 15,\r\n // 引导线两段中的第二段长度\r\n length2: 15,\r\n smooth: false,\r\n minTurnAngle: 90,\r\n maxSurfaceAngle: 90,\r\n lineStyle: {\r\n // color: 各异,\r\n width: 1,\r\n type: 'solid'\r\n }\r\n },\r\n itemStyle: {\r\n borderWidth: 1,\r\n borderJoin: 'round'\r\n },\r\n showEmptyCircle: true,\r\n emptyCircleStyle: {\r\n color: 'lightgray',\r\n opacity: 1\r\n },\r\n labelLayout: {\r\n // Hide the overlapped label.\r\n hideOverlap: true\r\n },\r\n emphasis: {\r\n scale: true,\r\n scaleSize: 5\r\n },\r\n // If use strategy to avoid label overlapping\r\n avoidLabelOverlap: true,\r\n // Animation type. Valid values: expansion, scale\r\n animationType: 'expansion',\r\n animationDuration: 1000,\r\n // Animation type when update. Valid values: transition, expansion\r\n animationTypeUpdate: 'transition',\r\n animationEasingUpdate: 'cubicInOut',\r\n animationDurationUpdate: 500,\r\n animationEasing: 'cubicInOut'\r\n };\r\n return PieSeriesModel;\r\n}(SeriesModel);\r\n\r\nexport default PieSeriesModel;"]},"metadata":{},"sourceType":"module"} |