office-viewer 0.3.11 → 0.3.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/esm/Excel.d.ts +1 -0
- package/esm/Excel.js +5 -0
- package/esm/OfficeViewer.d.ts +1 -0
- package/esm/UnSupport.d.ts +1 -0
- package/esm/UnSupport.js +3 -0
- package/esm/Word.d.ts +1 -0
- package/esm/Word.js +15 -1
- package/esm/createOfficeViewer.js +5 -1
- package/esm/excel/data/LocalDataProvider.d.ts +1 -0
- package/esm/excel/data/LocalDataProvider.js +4 -1
- package/esm/excel/data/applyAutoFilter.js +7 -3
- package/esm/excel/data/toNumber.d.ts +1 -0
- package/esm/excel/data/toNumber.js +14 -0
- package/esm/excel/formula/FormulaEnv.d.ts +30 -0
- package/esm/excel/formula/FormulaError.d.ts +44 -0
- package/esm/excel/formula/Parser.d.ts +27 -0
- package/esm/excel/formula/__tests__/eval.test.d.ts +1 -0
- package/esm/excel/formula/__tests__/lexer.test.d.ts +1 -0
- package/esm/excel/formula/__tests__/parser.test.d.ts +1 -0
- package/esm/excel/formula/ast/ASTNode.d.ts +13 -0
- package/esm/excel/formula/ast/Constrant.d.ts +4 -0
- package/esm/excel/formula/ast/Reference.d.ts +12 -0
- package/esm/excel/formula/builtinFunctions.d.ts +6 -0
- package/esm/excel/formula/dep/DependencyVisitor.d.ts +10 -0
- package/esm/excel/formula/dep/getFormulaDep.d.ts +2 -0
- package/esm/excel/formula/eval/EvalResult.d.ts +16 -0
- package/esm/excel/formula/eval/FormulaVisitor.d.ts +21 -0
- package/esm/excel/formula/eval/evalCriterial.d.ts +2 -0
- package/esm/excel/formula/eval/evalFormula.d.ts +3 -0
- package/esm/excel/formula/eval/toNum.d.ts +2 -0
- package/esm/excel/formula/eval/toStr.d.ts +2 -0
- package/esm/excel/formula/eval/visitArray.d.ts +4 -0
- package/esm/excel/formula/eval/visitBinaryExpr.d.ts +7 -0
- package/esm/excel/formula/eval/visitConstant.d.ts +4 -0
- package/esm/excel/formula/eval/visitFunction.d.ts +5 -0
- package/esm/excel/formula/eval/visitIntersection.d.ts +12 -0
- package/esm/excel/formula/eval/visitPercent.d.ts +4 -0
- package/esm/excel/formula/eval/visitReference.d.ts +5 -0
- package/esm/excel/formula/eval/visitUnaryExpr.d.ts +4 -0
- package/esm/excel/formula/functions/__tests__/buildEnv.d.ts +16 -0
- package/esm/excel/formula/functions/__tests__/database.test.d.ts +1 -0
- package/esm/excel/formula/functions/__tests__/date.test.d.ts +1 -0
- package/esm/excel/formula/functions/__tests__/engineering.test.d.ts +1 -0
- package/esm/excel/formula/functions/__tests__/financial.test.d.ts +1 -0
- package/esm/excel/formula/functions/__tests__/information.test.d.ts +1 -0
- package/esm/excel/formula/functions/__tests__/logical.test.d.ts +1 -0
- package/esm/excel/formula/functions/__tests__/math.test.d.ts +4 -0
- package/esm/excel/formula/functions/__tests__/reference.test.d.ts +1 -0
- package/esm/excel/formula/functions/__tests__/statistical.test.d.ts +1 -0
- package/esm/excel/formula/functions/__tests__/text.test.d.ts +4 -0
- package/esm/excel/formula/functions/__tests__/trigonometry.test.d.ts +1 -0
- package/esm/excel/formula/functions/database.d.ts +11 -0
- package/esm/excel/formula/functions/date.d.ts +14 -0
- package/esm/excel/formula/functions/distribution.d.ts +8 -0
- package/esm/excel/formula/functions/engineering.d.ts +5 -0
- package/esm/excel/formula/functions/financial.d.ts +5 -0
- package/esm/excel/formula/functions/functionAlias.d.ts +1 -0
- package/esm/excel/formula/functions/functions.d.ts +7 -0
- package/esm/excel/formula/functions/information.d.ts +5 -0
- package/esm/excel/formula/functions/logical.d.ts +4 -0
- package/esm/excel/formula/functions/math.d.ts +5 -0
- package/esm/excel/formula/functions/reference.d.ts +6 -0
- package/esm/excel/formula/functions/special.d.ts +14 -0
- package/esm/excel/formula/functions/statistical.d.ts +8 -0
- package/esm/excel/formula/functions/text.d.ts +1 -0
- package/esm/excel/formula/functions/trigonometry.d.ts +5 -0
- package/esm/excel/formula/functions/util/Factorials.d.ts +3 -0
- package/esm/excel/formula/functions/util/MathFunctions.d.ts +5 -0
- package/esm/excel/formula/functions/util/TextFunctions.d.ts +3 -0
- package/esm/excel/formula/functions/util/bahttext.d.ts +13 -0
- package/esm/excel/formula/functions/util/bessel.d.ts +6 -0
- package/esm/excel/formula/functions/util/convertWidth.d.ts +18 -0
- package/esm/excel/formula/functions/util/evalIF.d.ts +2 -0
- package/esm/excel/formula/functions/util/evalIFS.d.ts +2 -0
- package/esm/excel/formula/functions/util/flattenArgs.d.ts +5 -0
- package/esm/excel/formula/functions/util/get2DArrayOrThrow.d.ts +13 -0
- package/esm/excel/formula/functions/util/getArray.d.ts +2 -0
- package/esm/excel/formula/functions/util/getArrayNumbers.d.ts +9 -0
- package/esm/excel/formula/functions/util/getBoolean.d.ts +11 -0
- package/esm/excel/formula/functions/util/getDateOrThrow.d.ts +2 -0
- package/esm/excel/formula/functions/util/getFirstNumbers.d.ts +5 -0
- package/esm/excel/formula/functions/util/getFirstStrings.d.ts +5 -0
- package/esm/excel/formula/functions/util/getNumber.d.ts +11 -0
- package/esm/excel/formula/functions/util/getNumbers.d.ts +9 -0
- package/esm/excel/formula/functions/util/getNumbersWithUndefined.d.ts +12 -0
- package/esm/excel/formula/functions/util/getSingleValue.d.ts +5 -0
- package/esm/excel/formula/functions/util/getString.d.ts +4 -0
- package/esm/excel/formula/functions/util/getStrings.d.ts +2 -0
- package/esm/excel/formula/functions/util/jStat.d.ts +79 -0
- package/esm/excel/formula/functions/util/loopArgs.d.ts +2 -0
- package/esm/excel/formula/functions/util/wildCard.d.ts +4 -0
- package/esm/excel/formula/parser/ArrayParse.d.ts +7 -0
- package/esm/excel/formula/parser/BinaryOperator.d.ts +10 -0
- package/esm/excel/formula/parser/ConstantParse.d.ts +7 -0
- package/esm/excel/formula/parser/FunctionParse.d.ts +7 -0
- package/esm/excel/formula/parser/GroupParse.d.ts +7 -0
- package/esm/excel/formula/parser/InfixParse.d.ts +7 -0
- package/esm/excel/formula/parser/PercentParse.d.ts +10 -0
- package/esm/excel/formula/parser/PrefixOpParse.d.ts +9 -0
- package/esm/excel/formula/parser/PrefixParse.d.ts +6 -0
- package/esm/excel/formula/parser/RefParse.d.ts +7 -0
- package/esm/excel/formula/parser/parseCriteria.d.ts +12 -0
- package/esm/excel/formula/parser/remoteQuote.d.ts +4 -0
- package/esm/excel/formula/parser/tokenIsRef.d.ts +2 -0
- package/esm/excel/formula/parser/tokenPriorityMap.d.ts +9 -0
- package/esm/excel/formula/tokenizer.d.ts +118 -0
- package/esm/excel/io/excel/parseWorkbook.js +29 -25
- package/esm/excel/io/excel/util/Range.d.ts +12 -0
- package/esm/excel/io/excel/util/Range.js +25 -1
- package/esm/excel/io/excel/util/__tests__/range.test.d.ts +1 -0
- package/esm/excel/io/excel/util/decodeAddress.d.ts +6 -0
- package/esm/excel/io/excel/util/decodeAddress.js +18 -1
- package/esm/excel/render/ExcelRender.js +3 -1
- package/esm/excel/render/Icons.js +1 -1
- package/esm/excel/render/drawing/EChartsRender.js +1 -1
- package/esm/excel/render/sheetTab/StatusBar.js +1 -1
- package/esm/excel/render/sparkline/drawSparkline.js +1 -1
- package/esm/excel/sheet/ColWidth.d.ts +1 -0
- package/esm/excel/sheet/ColWidth.js +1 -0
- package/esm/excel/sheet/Sheet.d.ts +1 -0
- package/esm/excel/sheet/Sheet.js +3 -0
- package/esm/excel/sheet/cfRule/aboveAverage.js +2 -1
- package/esm/excel/sheet/cfRule/getMinMax.js +13 -1
- package/esm/excel/sheet/cfRule/top10.js +2 -1
- package/esm/excel/types/CellValue.d.ts +1 -1
- package/esm/excel/types/IDataProvider.d.ts +4 -0
- package/esm/node_modules/echarts/index.js +295 -0
- package/esm/node_modules/echarts/lib/action/roamHelper.js +81 -0
- package/esm/node_modules/echarts/lib/animation/basicTransition.js +202 -0
- package/esm/node_modules/echarts/lib/animation/customGraphicKeyframeAnimation.js +103 -0
- package/esm/node_modules/echarts/lib/animation/customGraphicTransition.js +440 -0
- package/esm/node_modules/echarts/lib/animation/morphTransitionHelper.js +164 -0
- package/esm/node_modules/echarts/lib/animation/universalTransition.js +608 -0
- package/esm/node_modules/echarts/lib/chart/bar/BarSeries.js +71 -0
- package/esm/node_modules/echarts/lib/chart/bar/BarView.js +852 -0
- package/esm/node_modules/echarts/lib/chart/bar/BaseBarSeries.js +118 -0
- package/esm/node_modules/echarts/lib/chart/bar/PictorialBarSeries.js +54 -0
- package/esm/node_modules/echarts/lib/chart/bar/PictorialBarView.js +593 -0
- package/esm/node_modules/echarts/lib/chart/bar/install.js +41 -0
- package/esm/node_modules/echarts/lib/chart/bar/installPictorialBar.js +14 -0
- package/esm/node_modules/echarts/lib/chart/boxplot/BoxplotSeries.js +67 -0
- package/esm/node_modules/echarts/lib/chart/boxplot/BoxplotView.js +131 -0
- package/esm/node_modules/echarts/lib/chart/boxplot/boxplotLayout.js +141 -0
- package/esm/node_modules/echarts/lib/chart/boxplot/boxplotTransform.js +26 -0
- package/esm/node_modules/echarts/lib/chart/boxplot/install.js +13 -0
- package/esm/node_modules/echarts/lib/chart/boxplot/prepareBoxplotData.js +56 -0
- package/esm/node_modules/echarts/lib/chart/candlestick/CandlestickSeries.js +79 -0
- package/esm/node_modules/echarts/lib/chart/candlestick/CandlestickView.js +291 -0
- package/esm/node_modules/echarts/lib/chart/candlestick/candlestickLayout.js +163 -0
- package/esm/node_modules/echarts/lib/chart/candlestick/candlestickVisual.js +43 -0
- package/esm/node_modules/echarts/lib/chart/candlestick/install.js +15 -0
- package/esm/node_modules/echarts/lib/chart/candlestick/preprocessor.js +15 -0
- package/esm/node_modules/echarts/lib/chart/custom/CustomSeries.js +64 -0
- package/esm/node_modules/echarts/lib/chart/custom/CustomView.js +888 -0
- package/esm/node_modules/echarts/lib/chart/custom/install.js +9 -0
- package/esm/node_modules/echarts/lib/chart/effectScatter/EffectScatterSeries.js +64 -0
- package/esm/node_modules/echarts/lib/chart/effectScatter/EffectScatterView.js +58 -0
- package/esm/node_modules/echarts/lib/chart/effectScatter/install.js +11 -0
- package/esm/node_modules/echarts/lib/chart/funnel/FunnelSeries.js +104 -0
- package/esm/node_modules/echarts/lib/chart/funnel/FunnelView.js +161 -0
- package/esm/node_modules/echarts/lib/chart/funnel/funnelLayout.js +304 -0
- package/esm/node_modules/echarts/lib/chart/funnel/install.js +13 -0
- package/esm/node_modules/echarts/lib/chart/gauge/GaugeSeries.js +144 -0
- package/esm/node_modules/echarts/lib/chart/gauge/GaugeView.js +524 -0
- package/esm/node_modules/echarts/lib/chart/gauge/PointerPath.js +42 -0
- package/esm/node_modules/echarts/lib/chart/gauge/install.js +9 -0
- package/esm/node_modules/echarts/lib/chart/graph/GraphSeries.js +234 -0
- package/esm/node_modules/echarts/lib/chart/graph/GraphView.js +226 -0
- package/esm/node_modules/echarts/lib/chart/graph/adjustEdge.js +133 -0
- package/esm/node_modules/echarts/lib/chart/graph/categoryFilter.js +34 -0
- package/esm/node_modules/echarts/lib/chart/graph/categoryVisual.js +50 -0
- package/esm/node_modules/echarts/lib/chart/graph/circularLayout.js +11 -0
- package/esm/node_modules/echarts/lib/chart/graph/circularLayoutHelper.js +151 -0
- package/esm/node_modules/echarts/lib/chart/graph/createView.js +62 -0
- package/esm/node_modules/echarts/lib/chart/graph/edgeVisual.js +53 -0
- package/esm/node_modules/echarts/lib/chart/graph/forceHelper.js +136 -0
- package/esm/node_modules/echarts/lib/chart/graph/forceLayout.js +120 -0
- package/esm/node_modules/echarts/lib/chart/graph/graphHelper.js +63 -0
- package/esm/node_modules/echarts/lib/chart/graph/install.js +57 -0
- package/esm/node_modules/echarts/lib/chart/graph/simpleLayout.js +38 -0
- package/esm/node_modules/echarts/lib/chart/graph/simpleLayoutHelper.js +30 -0
- package/esm/node_modules/echarts/lib/chart/heatmap/HeatmapLayer.js +124 -0
- package/esm/node_modules/echarts/lib/chart/heatmap/HeatmapSeries.js +48 -0
- package/esm/node_modules/echarts/lib/chart/heatmap/HeatmapView.js +271 -0
- package/esm/node_modules/echarts/lib/chart/heatmap/install.js +9 -0
- package/esm/node_modules/echarts/lib/chart/helper/EffectLine.js +164 -0
- package/esm/node_modules/echarts/lib/chart/helper/EffectPolyline.js +89 -0
- package/esm/node_modules/echarts/lib/chart/helper/EffectSymbol.js +165 -0
- package/esm/node_modules/echarts/lib/chart/helper/LargeLineDraw.js +259 -0
- package/esm/node_modules/echarts/lib/chart/helper/LargeSymbolDraw.js +269 -0
- package/esm/node_modules/echarts/lib/chart/helper/Line.js +378 -0
- package/esm/node_modules/echarts/lib/chart/helper/LineDraw.js +122 -0
- package/esm/node_modules/echarts/lib/chart/helper/LinePath.js +70 -0
- package/esm/node_modules/echarts/lib/chart/helper/Polyline.js +65 -0
- package/esm/node_modules/echarts/lib/chart/helper/Symbol.js +293 -0
- package/esm/node_modules/echarts/lib/chart/helper/SymbolDraw.js +172 -0
- package/esm/node_modules/echarts/lib/chart/helper/createClipPathFromCoordSys.js +107 -0
- package/esm/node_modules/echarts/lib/chart/helper/createGraphFromNodeEdge.js +74 -0
- package/esm/node_modules/echarts/lib/chart/helper/createRenderPlanner.js +22 -0
- package/esm/node_modules/echarts/lib/chart/helper/createSeriesData.js +121 -0
- package/esm/node_modules/echarts/lib/chart/helper/createSeriesDataSimply.js +28 -0
- package/esm/node_modules/echarts/lib/chart/helper/enableAriaDecalForTree.js +18 -0
- package/esm/node_modules/echarts/lib/chart/helper/labelHelper.js +37 -0
- package/esm/node_modules/echarts/lib/chart/helper/multipleGraphEdgeHelper.js +185 -0
- package/esm/node_modules/echarts/lib/chart/helper/sectorHelper.js +22 -0
- package/esm/node_modules/echarts/lib/chart/helper/treeHelper.js +52 -0
- package/esm/node_modules/echarts/lib/chart/helper/whiskerBoxCommon.js +96 -0
- package/esm/node_modules/echarts/lib/chart/line/LineSeries.js +112 -0
- package/esm/node_modules/echarts/lib/chart/line/LineView.js +1069 -0
- package/esm/node_modules/echarts/lib/chart/line/helper.js +83 -0
- package/esm/node_modules/echarts/lib/chart/line/install.js +28 -0
- package/esm/node_modules/echarts/lib/chart/line/lineAnimationDiff.js +125 -0
- package/esm/node_modules/echarts/lib/chart/line/poly.js +310 -0
- package/esm/node_modules/echarts/lib/chart/lines/LinesSeries.js +268 -0
- package/esm/node_modules/echarts/lib/chart/lines/LinesView.js +143 -0
- package/esm/node_modules/echarts/lib/chart/lines/install.js +13 -0
- package/esm/node_modules/echarts/lib/chart/lines/linesLayout.js +71 -0
- package/esm/node_modules/echarts/lib/chart/lines/linesVisual.js +74 -0
- package/esm/node_modules/echarts/lib/chart/map/MapSeries.js +206 -0
- package/esm/node_modules/echarts/lib/chart/map/MapView.js +137 -0
- package/esm/node_modules/echarts/lib/chart/map/install.js +18 -0
- package/esm/node_modules/echarts/lib/chart/map/mapDataStatistic.js +64 -0
- package/esm/node_modules/echarts/lib/chart/map/mapSymbolLayout.js +46 -0
- package/esm/node_modules/echarts/lib/chart/parallel/ParallelSeries.js +86 -0
- package/esm/node_modules/echarts/lib/chart/parallel/ParallelView.js +182 -0
- package/esm/node_modules/echarts/lib/chart/parallel/install.js +14 -0
- package/esm/node_modules/echarts/lib/chart/parallel/parallelVisual.js +69 -0
- package/esm/node_modules/echarts/lib/chart/pie/PieSeries.js +175 -0
- package/esm/node_modules/echarts/lib/chart/pie/PieView.js +244 -0
- package/esm/node_modules/echarts/lib/chart/pie/install.js +18 -0
- package/esm/node_modules/echarts/lib/chart/pie/labelLayout.js +433 -0
- package/esm/node_modules/echarts/lib/chart/pie/pieLayout.js +192 -0
- package/esm/node_modules/echarts/lib/chart/radar/RadarSeries.js +93 -0
- package/esm/node_modules/echarts/lib/chart/radar/RadarView.js +187 -0
- package/esm/node_modules/echarts/lib/chart/radar/backwardCompat.js +33 -0
- package/esm/node_modules/echarts/lib/chart/radar/install.js +18 -0
- package/esm/node_modules/echarts/lib/chart/radar/radarLayout.js +42 -0
- package/esm/node_modules/echarts/lib/chart/sankey/SankeySeries.js +174 -0
- package/esm/node_modules/echarts/lib/chart/sankey/SankeyView.js +287 -0
- package/esm/node_modules/echarts/lib/chart/sankey/install.js +27 -0
- package/esm/node_modules/echarts/lib/chart/sankey/sankeyLayout.js +449 -0
- package/esm/node_modules/echarts/lib/chart/sankey/sankeyVisual.js +52 -0
- package/esm/node_modules/echarts/lib/chart/scatter/ScatterSeries.js +79 -0
- package/esm/node_modules/echarts/lib/chart/scatter/ScatterView.js +92 -0
- package/esm/node_modules/echarts/lib/chart/scatter/install.js +15 -0
- package/esm/node_modules/echarts/lib/chart/sunburst/SunburstPiece.js +191 -0
- package/esm/node_modules/echarts/lib/chart/sunburst/SunburstSeries.js +165 -0
- package/esm/node_modules/echarts/lib/chart/sunburst/SunburstView.js +165 -0
- package/esm/node_modules/echarts/lib/chart/sunburst/install.js +18 -0
- package/esm/node_modules/echarts/lib/chart/sunburst/sunburstAction.js +68 -0
- package/esm/node_modules/echarts/lib/chart/sunburst/sunburstLayout.js +176 -0
- package/esm/node_modules/echarts/lib/chart/sunburst/sunburstVisual.js +35 -0
- package/esm/node_modules/echarts/lib/chart/themeRiver/ThemeRiverSeries.js +219 -0
- package/esm/node_modules/echarts/lib/chart/themeRiver/ThemeRiverView.js +146 -0
- package/esm/node_modules/echarts/lib/chart/themeRiver/install.js +13 -0
- package/esm/node_modules/echarts/lib/chart/themeRiver/themeRiverLayout.js +117 -0
- package/esm/node_modules/echarts/lib/chart/tree/TreeSeries.js +146 -0
- package/esm/node_modules/echarts/lib/chart/tree/TreeView.js +584 -0
- package/esm/node_modules/echarts/lib/chart/tree/install.js +15 -0
- package/esm/node_modules/echarts/lib/chart/tree/layoutHelper.js +234 -0
- package/esm/node_modules/echarts/lib/chart/tree/traversalHelper.js +87 -0
- package/esm/node_modules/echarts/lib/chart/tree/treeAction.js +42 -0
- package/esm/node_modules/echarts/lib/chart/tree/treeLayout.js +99 -0
- package/esm/node_modules/echarts/lib/chart/tree/treeVisual.js +17 -0
- package/esm/node_modules/echarts/lib/chart/treemap/Breadcrumb.js +149 -0
- package/esm/node_modules/echarts/lib/chart/treemap/TreemapSeries.js +326 -0
- package/esm/node_modules/echarts/lib/chart/treemap/TreemapView.js +813 -0
- package/esm/node_modules/echarts/lib/chart/treemap/install.js +15 -0
- package/esm/node_modules/echarts/lib/chart/treemap/treemapAction.js +35 -0
- package/esm/node_modules/echarts/lib/chart/treemap/treemapLayout.js +449 -0
- package/esm/node_modules/echarts/lib/chart/treemap/treemapVisual.js +154 -0
- package/esm/node_modules/echarts/lib/component/aria/install.js +9 -0
- package/esm/node_modules/echarts/lib/component/aria/preprocessor.js +21 -0
- package/esm/node_modules/echarts/lib/component/axis/AngleAxisView.js +287 -0
- package/esm/node_modules/echarts/lib/component/axis/AxisBuilder.js +535 -0
- package/esm/node_modules/echarts/lib/component/axis/AxisView.js +76 -0
- package/esm/node_modules/echarts/lib/component/axis/CartesianAxisView.js +191 -0
- package/esm/node_modules/echarts/lib/component/axis/ParallelAxisView.js +135 -0
- package/esm/node_modules/echarts/lib/component/axis/RadiusAxisView.js +169 -0
- package/esm/node_modules/echarts/lib/component/axis/SingleAxisView.js +107 -0
- package/esm/node_modules/echarts/lib/component/axis/axisSplitHelper.js +85 -0
- package/esm/node_modules/echarts/lib/component/axis/parallelAxisAction.js +71 -0
- package/esm/node_modules/echarts/lib/component/axisPointer/AxisPointerModel.js +71 -0
- package/esm/node_modules/echarts/lib/component/axisPointer/AxisPointerView.js +39 -0
- package/esm/node_modules/echarts/lib/component/axisPointer/BaseAxisPointer.js +355 -0
- package/esm/node_modules/echarts/lib/component/axisPointer/CartesianAxisPointer.js +107 -0
- package/esm/node_modules/echarts/lib/component/axisPointer/PolarAxisPointer.js +102 -0
- package/esm/node_modules/echarts/lib/component/axisPointer/SingleAxisPointer.js +104 -0
- package/esm/node_modules/echarts/lib/component/axisPointer/axisTrigger.js +338 -0
- package/esm/node_modules/echarts/lib/component/axisPointer/findPointFromSeries.js +58 -0
- package/esm/node_modules/echarts/lib/component/axisPointer/globalListener.js +98 -0
- package/esm/node_modules/echarts/lib/component/axisPointer/install.js +44 -0
- package/esm/node_modules/echarts/lib/component/axisPointer/modelHelper.js +255 -0
- package/esm/node_modules/echarts/lib/component/axisPointer/viewHelper.js +155 -0
- package/esm/node_modules/echarts/lib/component/brush/BrushModel.js +95 -0
- package/esm/node_modules/echarts/lib/component/brush/BrushView.js +70 -0
- package/esm/node_modules/echarts/lib/component/brush/install.js +60 -0
- package/esm/node_modules/echarts/lib/component/brush/preprocessor.js +47 -0
- package/esm/node_modules/echarts/lib/component/brush/selector.js +74 -0
- package/esm/node_modules/echarts/lib/component/brush/visualEncoding.js +215 -0
- package/esm/node_modules/echarts/lib/component/calendar/CalendarView.js +352 -0
- package/esm/node_modules/echarts/lib/component/calendar/install.js +11 -0
- package/esm/node_modules/echarts/lib/component/dataZoom/AxisProxy.js +301 -0
- package/esm/node_modules/echarts/lib/component/dataZoom/DataZoomModel.js +389 -0
- package/esm/node_modules/echarts/lib/component/dataZoom/DataZoomView.js +20 -0
- package/esm/node_modules/echarts/lib/component/dataZoom/InsideZoomModel.js +24 -0
- package/esm/node_modules/echarts/lib/component/dataZoom/InsideZoomView.js +157 -0
- package/esm/node_modules/echarts/lib/component/dataZoom/SelectZoomModel.js +15 -0
- package/esm/node_modules/echarts/lib/component/dataZoom/SelectZoomView.js +15 -0
- package/esm/node_modules/echarts/lib/component/dataZoom/SliderZoomModel.js +85 -0
- package/esm/node_modules/echarts/lib/component/dataZoom/SliderZoomView.js +782 -0
- package/esm/node_modules/echarts/lib/component/dataZoom/dataZoomAction.js +18 -0
- package/esm/node_modules/echarts/lib/component/dataZoom/dataZoomProcessor.js +89 -0
- package/esm/node_modules/echarts/lib/component/dataZoom/helper.js +120 -0
- package/esm/node_modules/echarts/lib/component/dataZoom/history.js +76 -0
- package/esm/node_modules/echarts/lib/component/dataZoom/install.js +12 -0
- package/esm/node_modules/echarts/lib/component/dataZoom/installCommon.js +18 -0
- package/esm/node_modules/echarts/lib/component/dataZoom/installDataZoomInside.js +13 -0
- package/esm/node_modules/echarts/lib/component/dataZoom/installDataZoomSelect.js +11 -0
- package/esm/node_modules/echarts/lib/component/dataZoom/installDataZoomSlider.js +11 -0
- package/esm/node_modules/echarts/lib/component/dataZoom/roams.js +182 -0
- package/esm/node_modules/echarts/lib/component/dataset/install.js +50 -0
- package/esm/node_modules/echarts/lib/component/geo/GeoView.js +69 -0
- package/esm/node_modules/echarts/lib/component/geo/install.js +101 -0
- package/esm/node_modules/echarts/lib/component/graphic/GraphicModel.js +203 -0
- package/esm/node_modules/echarts/lib/component/graphic/GraphicView.js +353 -0
- package/esm/node_modules/echarts/lib/component/graphic/install.js +34 -0
- package/esm/node_modules/echarts/lib/component/grid/install.js +10 -0
- package/esm/node_modules/echarts/lib/component/grid/installSimple.js +57 -0
- package/esm/node_modules/echarts/lib/component/helper/BrushController.js +713 -0
- package/esm/node_modules/echarts/lib/component/helper/BrushTargetManager.js +302 -0
- package/esm/node_modules/echarts/lib/component/helper/MapDraw.js +635 -0
- package/esm/node_modules/echarts/lib/component/helper/RoamController.js +203 -0
- package/esm/node_modules/echarts/lib/component/helper/brushHelper.js +31 -0
- package/esm/node_modules/echarts/lib/component/helper/cursorHelper.js +59 -0
- package/esm/node_modules/echarts/lib/component/helper/interactionMutex.js +36 -0
- package/esm/node_modules/echarts/lib/component/helper/listComponent.js +47 -0
- package/esm/node_modules/echarts/lib/component/helper/roamHelper.js +75 -0
- package/esm/node_modules/echarts/lib/component/helper/sliderMove.js +115 -0
- package/esm/node_modules/echarts/lib/component/legend/LegendModel.js +276 -0
- package/esm/node_modules/echarts/lib/component/legend/LegendView.js +486 -0
- package/esm/node_modules/echarts/lib/component/legend/ScrollableLegendModel.js +63 -0
- package/esm/node_modules/echarts/lib/component/legend/ScrollableLegendView.js +361 -0
- package/esm/node_modules/echarts/lib/component/legend/install.js +10 -0
- package/esm/node_modules/echarts/lib/component/legend/installLegendPlain.js +16 -0
- package/esm/node_modules/echarts/lib/component/legend/installLegendScroll.js +14 -0
- package/esm/node_modules/echarts/lib/component/legend/legendAction.js +72 -0
- package/esm/node_modules/echarts/lib/component/legend/legendFilter.js +61 -0
- package/esm/node_modules/echarts/lib/component/legend/scrollableLegendAction.js +62 -0
- package/esm/node_modules/echarts/lib/component/marker/MarkAreaModel.js +44 -0
- package/esm/node_modules/echarts/lib/component/marker/MarkAreaView.js +323 -0
- package/esm/node_modules/echarts/lib/component/marker/MarkLineModel.js +47 -0
- package/esm/node_modules/echarts/lib/component/marker/MarkLineView.js +322 -0
- package/esm/node_modules/echarts/lib/component/marker/MarkPointModel.js +41 -0
- package/esm/node_modules/echarts/lib/component/marker/MarkPointView.js +150 -0
- package/esm/node_modules/echarts/lib/component/marker/MarkerModel.js +125 -0
- package/esm/node_modules/echarts/lib/component/marker/MarkerView.js +54 -0
- package/esm/node_modules/echarts/lib/component/marker/checkMarkerInSeries.js +16 -0
- package/esm/node_modules/echarts/lib/component/marker/installMarkArea.js +16 -0
- package/esm/node_modules/echarts/lib/component/marker/installMarkLine.js +16 -0
- package/esm/node_modules/echarts/lib/component/marker/installMarkPoint.js +16 -0
- package/esm/node_modules/echarts/lib/component/marker/markerHelper.js +148 -0
- package/esm/node_modules/echarts/lib/component/parallel/ParallelView.js +96 -0
- package/esm/node_modules/echarts/lib/component/parallel/install.js +33 -0
- package/esm/node_modules/echarts/lib/component/polar/install.js +51 -0
- package/esm/node_modules/echarts/lib/component/radar/RadarView.js +166 -0
- package/esm/node_modules/echarts/lib/component/radar/install.js +23 -0
- package/esm/node_modules/echarts/lib/component/singleAxis/install.js +33 -0
- package/esm/node_modules/echarts/lib/component/timeline/SliderTimelineModel.js +118 -0
- package/esm/node_modules/echarts/lib/component/timeline/SliderTimelineView.js +615 -0
- package/esm/node_modules/echarts/lib/component/timeline/TimelineAxis.js +30 -0
- package/esm/node_modules/echarts/lib/component/timeline/TimelineModel.js +147 -0
- package/esm/node_modules/echarts/lib/component/timeline/TimelineView.js +15 -0
- package/esm/node_modules/echarts/lib/component/timeline/install.js +17 -0
- package/esm/node_modules/echarts/lib/component/timeline/preprocessor.js +72 -0
- package/esm/node_modules/echarts/lib/component/timeline/timelineAction.js +42 -0
- package/esm/node_modules/echarts/lib/component/title/install.js +187 -0
- package/esm/node_modules/echarts/lib/component/toolbox/ToolboxModel.js +67 -0
- package/esm/node_modules/echarts/lib/component/toolbox/ToolboxView.js +257 -0
- package/esm/node_modules/echarts/lib/component/toolbox/feature/Brush.js +91 -0
- package/esm/node_modules/echarts/lib/component/toolbox/feature/DataView.js +406 -0
- package/esm/node_modules/echarts/lib/component/toolbox/feature/DataZoom.js +207 -0
- package/esm/node_modules/echarts/lib/component/toolbox/feature/MagicType.js +166 -0
- package/esm/node_modules/echarts/lib/component/toolbox/feature/Restore.js +38 -0
- package/esm/node_modules/echarts/lib/component/toolbox/feature/SaveAsImage.js +105 -0
- package/esm/node_modules/echarts/lib/component/toolbox/featureManager.js +37 -0
- package/esm/node_modules/echarts/lib/component/toolbox/install.js +23 -0
- package/esm/node_modules/echarts/lib/component/tooltip/TooltipHTMLContent.js +357 -0
- package/esm/node_modules/echarts/lib/component/tooltip/TooltipModel.js +84 -0
- package/esm/node_modules/echarts/lib/component/tooltip/TooltipRichContent.js +168 -0
- package/esm/node_modules/echarts/lib/component/tooltip/TooltipView.js +803 -0
- package/esm/node_modules/echarts/lib/component/tooltip/helper.js +38 -0
- package/esm/node_modules/echarts/lib/component/tooltip/install.js +31 -0
- package/esm/node_modules/echarts/lib/component/tooltip/seriesFormatTooltip.js +102 -0
- package/esm/node_modules/echarts/lib/component/tooltip/tooltipMarkup.js +284 -0
- package/esm/node_modules/echarts/lib/component/transform/filterTransform.js +56 -0
- package/esm/node_modules/echarts/lib/component/transform/install.js +9 -0
- package/esm/node_modules/echarts/lib/component/transform/sortTransform.js +115 -0
- package/esm/node_modules/echarts/lib/component/visualMap/ContinuousModel.js +215 -0
- package/esm/node_modules/echarts/lib/component/visualMap/ContinuousView.js +651 -0
- package/esm/node_modules/echarts/lib/component/visualMap/PiecewiseModel.js +397 -0
- package/esm/node_modules/echarts/lib/component/visualMap/PiecewiseView.js +174 -0
- package/esm/node_modules/echarts/lib/component/visualMap/VisualMapModel.js +372 -0
- package/esm/node_modules/echarts/lib/component/visualMap/VisualMapView.js +114 -0
- package/esm/node_modules/echarts/lib/component/visualMap/helper.js +50 -0
- package/esm/node_modules/echarts/lib/component/visualMap/install.js +12 -0
- package/esm/node_modules/echarts/lib/component/visualMap/installCommon.js +23 -0
- package/esm/node_modules/echarts/lib/component/visualMap/installVisualMapContinuous.js +11 -0
- package/esm/node_modules/echarts/lib/component/visualMap/installVisualMapPiecewise.js +11 -0
- package/esm/node_modules/echarts/lib/component/visualMap/preprocessor.js +37 -0
- package/esm/node_modules/echarts/lib/component/visualMap/visualEncoding.js +68 -0
- package/esm/node_modules/echarts/lib/component/visualMap/visualMapAction.js +58 -0
- package/esm/node_modules/echarts/lib/coord/Axis.js +239 -0
- package/esm/node_modules/echarts/lib/coord/CoordinateSystem.js +47 -0
- package/esm/node_modules/echarts/lib/coord/View.js +205 -0
- package/esm/node_modules/echarts/lib/coord/axisAlignTicks.js +97 -0
- package/esm/node_modules/echarts/lib/coord/axisCommonTypes.js +50 -0
- package/esm/node_modules/echarts/lib/coord/axisDefault.js +162 -0
- package/esm/node_modules/echarts/lib/coord/axisHelper.js +308 -0
- package/esm/node_modules/echarts/lib/coord/axisModelCommonMixin.js +60 -0
- package/esm/node_modules/echarts/lib/coord/axisModelCreator.js +70 -0
- package/esm/node_modules/echarts/lib/coord/axisTickLabelBuilder.js +283 -0
- package/esm/node_modules/echarts/lib/coord/calendar/Calendar.js +333 -0
- package/esm/node_modules/echarts/lib/coord/calendar/CalendarModel.js +118 -0
- package/esm/node_modules/echarts/lib/coord/calendar/prepareCustom.js +70 -0
- package/esm/node_modules/echarts/lib/coord/cartesian/Axis2D.js +53 -0
- package/esm/node_modules/echarts/lib/coord/cartesian/AxisModel.js +20 -0
- package/esm/node_modules/echarts/lib/coord/cartesian/Cartesian.js +32 -0
- package/esm/node_modules/echarts/lib/coord/cartesian/Cartesian2D.js +127 -0
- package/esm/node_modules/echarts/lib/coord/cartesian/Grid.js +446 -0
- package/esm/node_modules/echarts/lib/coord/cartesian/GridModel.js +31 -0
- package/esm/node_modules/echarts/lib/coord/cartesian/cartesianAxisHelper.js +79 -0
- package/esm/node_modules/echarts/lib/coord/cartesian/prepareCustom.js +34 -0
- package/esm/node_modules/echarts/lib/coord/geo/Geo.js +167 -0
- package/esm/node_modules/echarts/lib/coord/geo/GeoJSONResource.js +102 -0
- package/esm/node_modules/echarts/lib/coord/geo/GeoModel.js +170 -0
- package/esm/node_modules/echarts/lib/coord/geo/GeoSVGResource.js +292 -0
- package/esm/node_modules/echarts/lib/coord/geo/Region.js +241 -0
- package/esm/node_modules/echarts/lib/coord/geo/fix/diaoyuIsland.js +57 -0
- package/esm/node_modules/echarts/lib/coord/geo/fix/nanhai.js +32 -0
- package/esm/node_modules/echarts/lib/coord/geo/fix/textCoord.js +64 -0
- package/esm/node_modules/echarts/lib/coord/geo/geoCreator.js +195 -0
- package/esm/node_modules/echarts/lib/coord/geo/geoSourceManager.js +81 -0
- package/esm/node_modules/echarts/lib/coord/geo/parseGeoJson.js +103 -0
- package/esm/node_modules/echarts/lib/coord/geo/prepareCustom.js +39 -0
- package/esm/node_modules/echarts/lib/coord/parallel/AxisModel.js +73 -0
- package/esm/node_modules/echarts/lib/coord/parallel/Parallel.js +365 -0
- package/esm/node_modules/echarts/lib/coord/parallel/ParallelAxis.js +18 -0
- package/esm/node_modules/echarts/lib/coord/parallel/ParallelModel.js +81 -0
- package/esm/node_modules/echarts/lib/coord/parallel/parallelCreator.js +27 -0
- package/esm/node_modules/echarts/lib/coord/parallel/parallelPreprocessor.js +44 -0
- package/esm/node_modules/echarts/lib/coord/polar/AngleAxis.js +70 -0
- package/esm/node_modules/echarts/lib/coord/polar/AxisModel.js +40 -0
- package/esm/node_modules/echarts/lib/coord/polar/Polar.js +175 -0
- package/esm/node_modules/echarts/lib/coord/polar/PolarModel.js +32 -0
- package/esm/node_modules/echarts/lib/coord/polar/RadiusAxis.js +17 -0
- package/esm/node_modules/echarts/lib/coord/polar/polarCreator.js +116 -0
- package/esm/node_modules/echarts/lib/coord/polar/prepareCustom.js +46 -0
- package/esm/node_modules/echarts/lib/coord/radar/IndicatorAxis.js +16 -0
- package/esm/node_modules/echarts/lib/coord/radar/Radar.js +152 -0
- package/esm/node_modules/echarts/lib/coord/radar/RadarModel.js +118 -0
- package/esm/node_modules/echarts/lib/coord/scaleRawExtentInfo.js +199 -0
- package/esm/node_modules/echarts/lib/coord/single/AxisModel.js +62 -0
- package/esm/node_modules/echarts/lib/coord/single/Single.js +166 -0
- package/esm/node_modules/echarts/lib/coord/single/SingleAxis.js +25 -0
- package/esm/node_modules/echarts/lib/coord/single/prepareCustom.js +30 -0
- package/esm/node_modules/echarts/lib/coord/single/singleAxisHelper.js +48 -0
- package/esm/node_modules/echarts/lib/coord/single/singleCreator.js +29 -0
- package/esm/node_modules/echarts/lib/core/CoordinateSystem.js +33 -0
- package/esm/node_modules/echarts/lib/core/ExtensionAPI.js +18 -0
- package/esm/node_modules/echarts/lib/core/Scheduler.js +447 -0
- package/esm/node_modules/echarts/lib/core/echarts.js +2225 -0
- package/esm/node_modules/echarts/lib/core/impl.js +25 -0
- package/esm/node_modules/echarts/lib/core/lifecycle.js +5 -0
- package/esm/node_modules/echarts/lib/core/locale.js +47 -0
- package/esm/node_modules/echarts/lib/core/task.js +303 -0
- package/esm/node_modules/echarts/lib/data/DataDiffer.js +253 -0
- package/esm/node_modules/echarts/lib/data/DataStore.js +959 -0
- package/esm/node_modules/echarts/lib/data/Graph.js +402 -0
- package/esm/node_modules/echarts/lib/data/OrdinalMeta.js +82 -0
- package/esm/node_modules/echarts/lib/data/SeriesData.js +939 -0
- package/esm/node_modules/echarts/lib/data/SeriesDimensionDefine.js +49 -0
- package/esm/node_modules/echarts/lib/data/Source.js +258 -0
- package/esm/node_modules/echarts/lib/data/Tree.js +307 -0
- package/esm/node_modules/echarts/lib/data/helper/SeriesDataSchema.js +183 -0
- package/esm/node_modules/echarts/lib/data/helper/createDimensions.js +282 -0
- package/esm/node_modules/echarts/lib/data/helper/dataProvider.js +313 -0
- package/esm/node_modules/echarts/lib/data/helper/dataStackHelper.js +139 -0
- package/esm/node_modules/echarts/lib/data/helper/dataValueHelper.js +196 -0
- package/esm/node_modules/echarts/lib/data/helper/dimensionHelper.js +131 -0
- package/esm/node_modules/echarts/lib/data/helper/linkSeriesData.js +106 -0
- package/esm/node_modules/echarts/lib/data/helper/sourceHelper.js +314 -0
- package/esm/node_modules/echarts/lib/data/helper/sourceManager.js +376 -0
- package/esm/node_modules/echarts/lib/data/helper/transform.js +376 -0
- package/esm/node_modules/echarts/lib/export/api/format.js +4 -0
- package/esm/node_modules/echarts/lib/export/api/graphic.js +20 -0
- package/esm/node_modules/echarts/lib/export/api/helper.js +68 -0
- package/esm/node_modules/echarts/lib/export/api/number.js +1 -0
- package/esm/node_modules/echarts/lib/export/api/time.js +2 -0
- package/esm/node_modules/echarts/lib/export/api/util.js +1 -0
- package/esm/node_modules/echarts/lib/export/api.js +62 -0
- package/esm/node_modules/echarts/lib/export/core.js +34 -0
- package/esm/node_modules/echarts/lib/extension.js +70 -0
- package/esm/node_modules/echarts/lib/i18n/langEN.js +158 -0
- package/esm/node_modules/echarts/lib/i18n/langZH.js +155 -0
- package/esm/node_modules/echarts/lib/label/LabelManager.js +395 -0
- package/esm/node_modules/echarts/lib/label/installLabelLayout.js +25 -0
- package/esm/node_modules/echarts/lib/label/labelGuideHelper.js +504 -0
- package/esm/node_modules/echarts/lib/label/labelLayoutHelper.js +261 -0
- package/esm/node_modules/echarts/lib/label/labelStyle.js +444 -0
- package/esm/node_modules/echarts/lib/label/sectorLabel.js +161 -0
- package/esm/node_modules/echarts/lib/layout/barGrid.js +436 -0
- package/esm/node_modules/echarts/lib/layout/barPolar.js +213 -0
- package/esm/node_modules/echarts/lib/layout/points.js +64 -0
- package/esm/node_modules/echarts/lib/legacy/dataSelectAction.js +76 -0
- package/esm/node_modules/echarts/lib/legacy/getTextRect.js +20 -0
- package/esm/node_modules/echarts/lib/loading/default.js +124 -0
- package/esm/node_modules/echarts/lib/model/Component.js +193 -0
- package/esm/node_modules/echarts/lib/model/Global.js +693 -0
- package/esm/node_modules/echarts/lib/model/Model.js +134 -0
- package/esm/node_modules/echarts/lib/model/OptionManager.js +319 -0
- package/esm/node_modules/echarts/lib/model/Series.js +502 -0
- package/esm/node_modules/echarts/lib/model/globalDefault.js +132 -0
- package/esm/node_modules/echarts/lib/model/internalComponentCreator.js +26 -0
- package/esm/node_modules/echarts/lib/model/mixin/areaStyle.js +17 -0
- package/esm/node_modules/echarts/lib/model/mixin/dataFormat.js +160 -0
- package/esm/node_modules/echarts/lib/model/mixin/itemStyle.js +17 -0
- package/esm/node_modules/echarts/lib/model/mixin/lineStyle.js +17 -0
- package/esm/node_modules/echarts/lib/model/mixin/makeStyleMapper.js +28 -0
- package/esm/node_modules/echarts/lib/model/mixin/palette.js +64 -0
- package/esm/node_modules/echarts/lib/model/mixin/textStyle.js +45 -0
- package/esm/node_modules/echarts/lib/model/referHelper.js +128 -0
- package/esm/node_modules/echarts/lib/preprocessor/backwardCompat.js +215 -0
- package/esm/node_modules/echarts/lib/preprocessor/helper/compatStyle.js +291 -0
- package/esm/node_modules/echarts/lib/processor/dataFilter.js +69 -0
- package/esm/node_modules/echarts/lib/processor/dataSample.js +101 -0
- package/esm/node_modules/echarts/lib/processor/dataStack.js +93 -0
- package/esm/node_modules/echarts/lib/processor/negativeDataFilter.js +21 -0
- package/esm/node_modules/echarts/lib/renderer/installCanvasRenderer.js +7 -0
- package/esm/node_modules/echarts/lib/renderer/installSVGRenderer.js +7 -0
- package/esm/node_modules/echarts/lib/scale/Interval.js +226 -0
- package/esm/node_modules/echarts/lib/scale/Log.js +136 -0
- package/esm/node_modules/echarts/lib/scale/Ordinal.js +167 -0
- package/esm/node_modules/echarts/lib/scale/Scale.js +71 -0
- package/esm/node_modules/echarts/lib/scale/Time.js +451 -0
- package/esm/node_modules/echarts/lib/scale/helper.js +82 -0
- package/esm/node_modules/echarts/lib/theme/dark.js +223 -0
- package/esm/node_modules/echarts/lib/theme/light.js +49 -0
- package/esm/node_modules/echarts/lib/util/ECEventProcessor.js +102 -0
- package/esm/node_modules/echarts/lib/util/animation.js +121 -0
- package/esm/node_modules/echarts/lib/util/clazz.js +265 -0
- package/esm/node_modules/echarts/lib/util/component.js +146 -0
- package/esm/node_modules/echarts/lib/util/conditionalExpression.js +215 -0
- package/esm/node_modules/echarts/lib/util/decal.js +352 -0
- package/esm/node_modules/echarts/lib/util/event.js +57 -0
- package/esm/node_modules/echarts/lib/util/format.js +200 -0
- package/esm/node_modules/echarts/lib/util/graphic.js +489 -0
- package/esm/node_modules/echarts/lib/util/innerStore.js +26 -0
- package/esm/node_modules/echarts/lib/util/layout.js +408 -0
- package/esm/node_modules/echarts/lib/util/log.js +94 -0
- package/esm/node_modules/echarts/lib/util/model.js +654 -0
- package/esm/node_modules/echarts/lib/util/number.js +515 -0
- package/esm/node_modules/echarts/lib/util/shape/sausage.js +67 -0
- package/esm/node_modules/echarts/lib/util/states.js +650 -0
- package/esm/node_modules/echarts/lib/util/styleCompat.js +186 -0
- package/esm/node_modules/echarts/lib/util/symbol.js +297 -0
- package/esm/node_modules/echarts/lib/util/throttle.js +172 -0
- package/esm/node_modules/echarts/lib/util/time.js +231 -0
- package/esm/node_modules/echarts/lib/util/types.js +13 -0
- package/esm/node_modules/echarts/lib/util/vendor.js +15 -0
- package/esm/node_modules/echarts/lib/view/Chart.js +160 -0
- package/esm/node_modules/echarts/lib/view/Component.js +47 -0
- package/esm/node_modules/echarts/lib/visual/LegendVisualProvider.js +81 -0
- package/esm/node_modules/echarts/lib/visual/VisualMapping.js +438 -0
- package/esm/node_modules/echarts/lib/visual/aria.js +189 -0
- package/esm/node_modules/echarts/lib/visual/decal.js +26 -0
- package/esm/node_modules/echarts/lib/visual/helper.js +101 -0
- package/esm/node_modules/echarts/lib/visual/style.js +175 -0
- package/esm/node_modules/echarts/lib/visual/symbol.js +83 -0
- package/esm/node_modules/echarts/lib/visual/visualDefault.js +47 -0
- package/esm/node_modules/echarts/lib/visual/visualSolution.js +159 -0
- package/esm/node_modules/zrender/lib/Element.js +1053 -0
- package/esm/node_modules/zrender/lib/Handler.js +298 -0
- package/esm/node_modules/zrender/lib/Storage.js +161 -0
- package/esm/node_modules/zrender/lib/animation/Animation.js +150 -0
- package/esm/node_modules/zrender/lib/animation/Animator.js +739 -0
- package/esm/node_modules/zrender/lib/animation/Clip.js +67 -0
- package/esm/node_modules/zrender/lib/animation/cubicEasing.js +26 -0
- package/esm/node_modules/zrender/lib/animation/easing.js +197 -0
- package/esm/node_modules/zrender/lib/animation/requestAnimationFrame.js +13 -0
- package/esm/node_modules/zrender/lib/canvas/Layer.js +298 -0
- package/esm/node_modules/zrender/lib/canvas/Painter.js +643 -0
- package/esm/node_modules/zrender/lib/canvas/dashStyle.js +30 -0
- package/esm/node_modules/zrender/lib/canvas/graphic.js +561 -0
- package/esm/node_modules/zrender/lib/canvas/helper.js +81 -0
- package/esm/node_modules/zrender/lib/config.js +15 -0
- package/esm/node_modules/zrender/lib/contain/arc.js +38 -0
- package/esm/node_modules/zrender/lib/contain/cubic.js +18 -0
- package/esm/node_modules/zrender/lib/contain/line.js +26 -0
- package/esm/node_modules/zrender/lib/contain/path.js +310 -0
- package/esm/node_modules/zrender/lib/contain/polygon.js +25 -0
- package/esm/node_modules/zrender/lib/contain/quadratic.js +18 -0
- package/esm/node_modules/zrender/lib/contain/text.js +170 -0
- package/esm/node_modules/zrender/lib/contain/util.js +10 -0
- package/esm/node_modules/zrender/lib/contain/windingLine.js +17 -0
- package/esm/node_modules/zrender/lib/core/BoundingRect.js +218 -0
- package/esm/node_modules/zrender/lib/core/Eventful.js +164 -0
- package/esm/node_modules/zrender/lib/core/GestureMgr.js +84 -0
- package/esm/node_modules/zrender/lib/core/LRU.js +110 -0
- package/esm/node_modules/zrender/lib/core/OrientedBoundingRect.js +123 -0
- package/esm/node_modules/zrender/lib/core/PathProxy.js +700 -0
- package/esm/node_modules/zrender/lib/core/Point.js +131 -0
- package/esm/node_modules/zrender/lib/core/Transformable.js +246 -0
- package/esm/node_modules/zrender/lib/core/WeakMap.js +44 -0
- package/esm/node_modules/zrender/lib/core/bbox.js +127 -0
- package/esm/node_modules/zrender/lib/core/curve.js +348 -0
- package/esm/node_modules/zrender/lib/core/dom.js +97 -0
- package/esm/node_modules/zrender/lib/core/env.js +82 -0
- package/esm/node_modules/zrender/lib/core/event.js +108 -0
- package/esm/node_modules/zrender/lib/core/fourPointsTransform.js +61 -0
- package/esm/node_modules/zrender/lib/core/matrix.js +101 -0
- package/esm/node_modules/zrender/lib/core/platform.js +74 -0
- package/esm/node_modules/zrender/lib/core/timsort.js +524 -0
- package/esm/node_modules/zrender/lib/core/util.js +543 -0
- package/esm/node_modules/zrender/lib/core/vector.js +114 -0
- package/esm/node_modules/zrender/lib/dom/HandlerProxy.js +296 -0
- package/esm/node_modules/zrender/lib/graphic/CompoundPath.js +52 -0
- package/esm/node_modules/zrender/lib/graphic/Displayable.js +327 -0
- package/esm/node_modules/zrender/lib/graphic/Gradient.js +15 -0
- package/esm/node_modules/zrender/lib/graphic/Group.js +182 -0
- package/esm/node_modules/zrender/lib/graphic/Image.js +76 -0
- package/esm/node_modules/zrender/lib/graphic/IncrementalDisplayable.js +115 -0
- package/esm/node_modules/zrender/lib/graphic/LinearGradient.js +20 -0
- package/esm/node_modules/zrender/lib/graphic/Path.js +401 -0
- package/esm/node_modules/zrender/lib/graphic/RadialGradient.js +19 -0
- package/esm/node_modules/zrender/lib/graphic/TSpan.js +66 -0
- package/esm/node_modules/zrender/lib/graphic/Text.js +552 -0
- package/esm/node_modules/zrender/lib/graphic/constants.js +5 -0
- package/esm/node_modules/zrender/lib/graphic/helper/image.js +57 -0
- package/esm/node_modules/zrender/lib/graphic/helper/parseText.js +471 -0
- package/esm/node_modules/zrender/lib/graphic/helper/poly.js +28 -0
- package/esm/node_modules/zrender/lib/graphic/helper/roundRect.js +77 -0
- package/esm/node_modules/zrender/lib/graphic/helper/roundSector.js +230 -0
- package/esm/node_modules/zrender/lib/graphic/helper/smoothBezier.js +66 -0
- package/esm/node_modules/zrender/lib/graphic/helper/subPixelOptimize.js +58 -0
- package/esm/node_modules/zrender/lib/graphic/shape/Arc.js +46 -0
- package/esm/node_modules/zrender/lib/graphic/shape/BezierCurve.js +100 -0
- package/esm/node_modules/zrender/lib/graphic/shape/Circle.js +29 -0
- package/esm/node_modules/zrender/lib/graphic/shape/Ellipse.js +41 -0
- package/esm/node_modules/zrender/lib/graphic/shape/Line.js +71 -0
- package/esm/node_modules/zrender/lib/graphic/shape/Polygon.js +29 -0
- package/esm/node_modules/zrender/lib/graphic/shape/Polyline.js +36 -0
- package/esm/node_modules/zrender/lib/graphic/shape/Rect.js +59 -0
- package/esm/node_modules/zrender/lib/graphic/shape/Ring.js +35 -0
- package/esm/node_modules/zrender/lib/graphic/shape/Sector.js +38 -0
- package/esm/node_modules/zrender/lib/mixin/Draggable.js +68 -0
- package/esm/node_modules/zrender/lib/svg/Painter.js +255 -0
- package/esm/node_modules/zrender/lib/svg/SVGPathRebuilder.js +106 -0
- package/esm/node_modules/zrender/lib/svg/core.js +109 -0
- package/esm/node_modules/zrender/lib/svg/cssAnimation.js +277 -0
- package/esm/node_modules/zrender/lib/svg/cssClassId.js +6 -0
- package/esm/node_modules/zrender/lib/svg/cssEmphasis.js +63 -0
- package/esm/node_modules/zrender/lib/svg/domapi.js +23 -0
- package/esm/node_modules/zrender/lib/svg/graphic.js +482 -0
- package/esm/node_modules/zrender/lib/svg/helper.js +143 -0
- package/esm/node_modules/zrender/lib/svg/mapStyleToAttrs.js +84 -0
- package/esm/node_modules/zrender/lib/svg/patch.js +256 -0
- package/esm/node_modules/zrender/lib/tool/color.js +432 -0
- package/esm/node_modules/zrender/lib/tool/convertPath.js +200 -0
- package/esm/node_modules/zrender/lib/tool/dividePath.js +314 -0
- package/esm/node_modules/zrender/lib/tool/morphPath.js +593 -0
- package/esm/node_modules/zrender/lib/tool/parseSVG.js +639 -0
- package/esm/node_modules/zrender/lib/tool/parseXML.js +18 -0
- package/esm/node_modules/zrender/lib/tool/path.js +372 -0
- package/esm/node_modules/zrender/lib/tool/transformPath.js +84 -0
- package/esm/node_modules/zrender/lib/zrender.js +330 -0
- package/esm/package/PackageParser.d.ts +4 -1
- package/esm/package/XMLPackageParser.d.ts +5 -2
- package/esm/package/ZipPackageParser.d.ts +5 -2
- package/esm/package/ZipPackageParser.js +12 -4
- package/esm/util/fflate.d.ts +1168 -0
- package/esm/util/fflate.js +1130 -0
- package/esm/util/fileType.js +6 -0
- package/esm/util/graph.d.ts +46 -0
- package/esm/word/parse/defaultXML/settingsXML.d.ts +1 -0
- package/esm/word/parse/defaultXML/settingsXML.js +5 -0
- package/esm/word/parse/defaultXML/stylesXML.d.ts +1 -0
- package/esm/word/parse/defaultXML/stylesXML.js +5 -0
- package/esm/word/parse/defaultXML/themeXML.d.ts +1 -0
- package/esm/word/parse/defaultXML/themeXML.js +5 -0
- package/esm/word/parse/jcToTextAlign.d.ts +1 -1
- package/esm/word/parse/jcToTextAlign.js +2 -1
- package/lib/Excel.d.ts +1 -0
- package/lib/Excel.js +5 -0
- package/lib/OfficeViewer.d.ts +1 -0
- package/lib/UnSupport.d.ts +1 -0
- package/lib/UnSupport.js +3 -0
- package/lib/Word.d.ts +1 -0
- package/lib/Word.js +15 -1
- package/lib/createOfficeViewer.d.ts +1 -1
- package/lib/createOfficeViewer.js +5 -1
- package/lib/excel/data/LocalDataProvider.d.ts +1 -0
- package/lib/excel/data/LocalDataProvider.js +4 -1
- package/lib/excel/data/applyAutoFilter.js +7 -3
- package/lib/excel/data/toNumber.d.ts +1 -0
- package/lib/excel/data/toNumber.js +18 -0
- package/lib/excel/formula/FormulaEnv.d.ts +30 -0
- package/lib/excel/formula/FormulaError.d.ts +44 -0
- package/lib/excel/formula/Parser.d.ts +27 -0
- package/lib/excel/formula/__tests__/eval.test.d.ts +1 -0
- package/lib/excel/formula/__tests__/lexer.test.d.ts +1 -0
- package/lib/excel/formula/__tests__/parser.test.d.ts +1 -0
- package/lib/excel/formula/ast/ASTNode.d.ts +13 -0
- package/lib/excel/formula/ast/Constrant.d.ts +4 -0
- package/lib/excel/formula/ast/Reference.d.ts +12 -0
- package/lib/excel/formula/builtinFunctions.d.ts +6 -0
- package/lib/excel/formula/dep/DependencyVisitor.d.ts +10 -0
- package/lib/excel/formula/dep/getFormulaDep.d.ts +2 -0
- package/lib/excel/formula/eval/EvalResult.d.ts +16 -0
- package/lib/excel/formula/eval/FormulaVisitor.d.ts +21 -0
- package/lib/excel/formula/eval/evalCriterial.d.ts +2 -0
- package/lib/excel/formula/eval/evalFormula.d.ts +3 -0
- package/lib/excel/formula/eval/toNum.d.ts +2 -0
- package/lib/excel/formula/eval/toStr.d.ts +2 -0
- package/lib/excel/formula/eval/visitArray.d.ts +4 -0
- package/lib/excel/formula/eval/visitBinaryExpr.d.ts +7 -0
- package/lib/excel/formula/eval/visitConstant.d.ts +4 -0
- package/lib/excel/formula/eval/visitFunction.d.ts +5 -0
- package/lib/excel/formula/eval/visitIntersection.d.ts +12 -0
- package/lib/excel/formula/eval/visitPercent.d.ts +4 -0
- package/lib/excel/formula/eval/visitReference.d.ts +5 -0
- package/lib/excel/formula/eval/visitUnaryExpr.d.ts +4 -0
- package/lib/excel/formula/functions/__tests__/buildEnv.d.ts +16 -0
- package/lib/excel/formula/functions/__tests__/database.test.d.ts +1 -0
- package/lib/excel/formula/functions/__tests__/date.test.d.ts +1 -0
- package/lib/excel/formula/functions/__tests__/engineering.test.d.ts +1 -0
- package/lib/excel/formula/functions/__tests__/financial.test.d.ts +1 -0
- package/lib/excel/formula/functions/__tests__/information.test.d.ts +1 -0
- package/lib/excel/formula/functions/__tests__/logical.test.d.ts +1 -0
- package/lib/excel/formula/functions/__tests__/math.test.d.ts +4 -0
- package/lib/excel/formula/functions/__tests__/reference.test.d.ts +1 -0
- package/lib/excel/formula/functions/__tests__/statistical.test.d.ts +1 -0
- package/lib/excel/formula/functions/__tests__/text.test.d.ts +4 -0
- package/lib/excel/formula/functions/__tests__/trigonometry.test.d.ts +1 -0
- package/lib/excel/formula/functions/database.d.ts +11 -0
- package/lib/excel/formula/functions/date.d.ts +14 -0
- package/lib/excel/formula/functions/distribution.d.ts +8 -0
- package/lib/excel/formula/functions/engineering.d.ts +5 -0
- package/lib/excel/formula/functions/financial.d.ts +5 -0
- package/lib/excel/formula/functions/functionAlias.d.ts +1 -0
- package/lib/excel/formula/functions/functions.d.ts +7 -0
- package/lib/excel/formula/functions/information.d.ts +5 -0
- package/lib/excel/formula/functions/logical.d.ts +4 -0
- package/lib/excel/formula/functions/math.d.ts +5 -0
- package/lib/excel/formula/functions/reference.d.ts +6 -0
- package/lib/excel/formula/functions/special.d.ts +14 -0
- package/lib/excel/formula/functions/statistical.d.ts +8 -0
- package/lib/excel/formula/functions/text.d.ts +1 -0
- package/lib/excel/formula/functions/trigonometry.d.ts +5 -0
- package/lib/excel/formula/functions/util/Factorials.d.ts +3 -0
- package/lib/excel/formula/functions/util/MathFunctions.d.ts +5 -0
- package/lib/excel/formula/functions/util/TextFunctions.d.ts +3 -0
- package/lib/excel/formula/functions/util/bahttext.d.ts +13 -0
- package/lib/excel/formula/functions/util/bessel.d.ts +6 -0
- package/lib/excel/formula/functions/util/convertWidth.d.ts +18 -0
- package/lib/excel/formula/functions/util/evalIF.d.ts +2 -0
- package/lib/excel/formula/functions/util/evalIFS.d.ts +2 -0
- package/lib/excel/formula/functions/util/flattenArgs.d.ts +5 -0
- package/lib/excel/formula/functions/util/get2DArrayOrThrow.d.ts +13 -0
- package/lib/excel/formula/functions/util/getArray.d.ts +2 -0
- package/lib/excel/formula/functions/util/getArrayNumbers.d.ts +9 -0
- package/lib/excel/formula/functions/util/getBoolean.d.ts +11 -0
- package/lib/excel/formula/functions/util/getDateOrThrow.d.ts +2 -0
- package/lib/excel/formula/functions/util/getFirstNumbers.d.ts +5 -0
- package/lib/excel/formula/functions/util/getFirstStrings.d.ts +5 -0
- package/lib/excel/formula/functions/util/getNumber.d.ts +11 -0
- package/lib/excel/formula/functions/util/getNumbers.d.ts +9 -0
- package/lib/excel/formula/functions/util/getNumbersWithUndefined.d.ts +12 -0
- package/lib/excel/formula/functions/util/getSingleValue.d.ts +5 -0
- package/lib/excel/formula/functions/util/getString.d.ts +4 -0
- package/lib/excel/formula/functions/util/getStrings.d.ts +2 -0
- package/lib/excel/formula/functions/util/jStat.d.ts +79 -0
- package/lib/excel/formula/functions/util/loopArgs.d.ts +2 -0
- package/lib/excel/formula/functions/util/wildCard.d.ts +4 -0
- package/lib/excel/formula/parser/ArrayParse.d.ts +7 -0
- package/lib/excel/formula/parser/BinaryOperator.d.ts +10 -0
- package/lib/excel/formula/parser/ConstantParse.d.ts +7 -0
- package/lib/excel/formula/parser/FunctionParse.d.ts +7 -0
- package/lib/excel/formula/parser/GroupParse.d.ts +7 -0
- package/lib/excel/formula/parser/InfixParse.d.ts +7 -0
- package/lib/excel/formula/parser/PercentParse.d.ts +10 -0
- package/lib/excel/formula/parser/PrefixOpParse.d.ts +9 -0
- package/lib/excel/formula/parser/PrefixParse.d.ts +6 -0
- package/lib/excel/formula/parser/RefParse.d.ts +7 -0
- package/lib/excel/formula/parser/parseCriteria.d.ts +12 -0
- package/lib/excel/formula/parser/remoteQuote.d.ts +4 -0
- package/lib/excel/formula/parser/tokenIsRef.d.ts +2 -0
- package/lib/excel/formula/parser/tokenPriorityMap.d.ts +9 -0
- package/lib/excel/formula/tokenizer.d.ts +118 -0
- package/lib/excel/io/excel/parseWorkbook.js +29 -25
- package/lib/excel/io/excel/util/Range.d.ts +12 -0
- package/lib/excel/io/excel/util/Range.js +24 -0
- package/lib/excel/io/excel/util/__tests__/range.test.d.ts +1 -0
- package/lib/excel/io/excel/util/decodeAddress.d.ts +6 -0
- package/lib/excel/io/excel/util/decodeAddress.js +18 -0
- package/lib/excel/lang/lang.d.ts +1 -1
- package/lib/excel/render/ExcelRender.js +3 -1
- package/lib/excel/render/Icons.js +1 -1
- package/lib/excel/render/autoFilter/sortState/getColumnSortOrder.d.ts +1 -1
- package/lib/excel/render/drawing/EChartsRender.js +1 -19
- package/lib/excel/render/sheetTab/StatusBar.js +1 -1
- package/lib/excel/render/sparkline/drawSparkline.js +1 -1
- package/lib/excel/sheet/ColWidth.d.ts +1 -0
- package/lib/excel/sheet/ColWidth.js +1 -0
- package/lib/excel/sheet/Sheet.d.ts +1 -0
- package/lib/excel/sheet/Sheet.js +3 -0
- package/lib/excel/sheet/cfRule/aboveAverage.js +2 -1
- package/lib/excel/sheet/cfRule/getMinMax.js +13 -1
- package/lib/excel/sheet/cfRule/top10.js +2 -1
- package/lib/excel/types/CellValue.d.ts +1 -1
- package/lib/excel/types/IDataProvider.d.ts +4 -0
- package/lib/node_modules/echarts/index.js +345 -0
- package/lib/node_modules/echarts/lib/action/roamHelper.js +85 -0
- package/lib/node_modules/echarts/lib/animation/basicTransition.js +214 -0
- package/lib/node_modules/echarts/lib/animation/customGraphicKeyframeAnimation.js +108 -0
- package/lib/node_modules/echarts/lib/animation/customGraphicTransition.js +448 -0
- package/lib/node_modules/echarts/lib/animation/morphTransitionHelper.js +169 -0
- package/lib/node_modules/echarts/lib/animation/universalTransition.js +612 -0
- package/lib/node_modules/echarts/lib/chart/bar/BarSeries.js +75 -0
- package/lib/node_modules/echarts/lib/chart/bar/BarView.js +856 -0
- package/lib/node_modules/echarts/lib/chart/bar/BaseBarSeries.js +122 -0
- package/lib/node_modules/echarts/lib/chart/bar/PictorialBarSeries.js +58 -0
- package/lib/node_modules/echarts/lib/chart/bar/PictorialBarView.js +597 -0
- package/lib/node_modules/echarts/lib/chart/bar/install.js +45 -0
- package/lib/node_modules/echarts/lib/chart/bar/installPictorialBar.js +18 -0
- package/lib/node_modules/echarts/lib/chart/boxplot/BoxplotSeries.js +71 -0
- package/lib/node_modules/echarts/lib/chart/boxplot/BoxplotView.js +135 -0
- package/lib/node_modules/echarts/lib/chart/boxplot/boxplotLayout.js +145 -0
- package/lib/node_modules/echarts/lib/chart/boxplot/boxplotTransform.js +30 -0
- package/lib/node_modules/echarts/lib/chart/boxplot/install.js +17 -0
- package/lib/node_modules/echarts/lib/chart/boxplot/prepareBoxplotData.js +60 -0
- package/lib/node_modules/echarts/lib/chart/candlestick/CandlestickSeries.js +83 -0
- package/lib/node_modules/echarts/lib/chart/candlestick/CandlestickView.js +295 -0
- package/lib/node_modules/echarts/lib/chart/candlestick/candlestickLayout.js +167 -0
- package/lib/node_modules/echarts/lib/chart/candlestick/candlestickVisual.js +47 -0
- package/lib/node_modules/echarts/lib/chart/candlestick/install.js +19 -0
- package/lib/node_modules/echarts/lib/chart/candlestick/preprocessor.js +19 -0
- package/lib/node_modules/echarts/lib/chart/custom/CustomSeries.js +71 -0
- package/lib/node_modules/echarts/lib/chart/custom/CustomView.js +892 -0
- package/lib/node_modules/echarts/lib/chart/custom/install.js +13 -0
- package/lib/node_modules/echarts/lib/chart/effectScatter/EffectScatterSeries.js +68 -0
- package/lib/node_modules/echarts/lib/chart/effectScatter/EffectScatterView.js +62 -0
- package/lib/node_modules/echarts/lib/chart/effectScatter/install.js +15 -0
- package/lib/node_modules/echarts/lib/chart/funnel/FunnelSeries.js +108 -0
- package/lib/node_modules/echarts/lib/chart/funnel/FunnelView.js +165 -0
- package/lib/node_modules/echarts/lib/chart/funnel/funnelLayout.js +308 -0
- package/lib/node_modules/echarts/lib/chart/funnel/install.js +17 -0
- package/lib/node_modules/echarts/lib/chart/gauge/GaugeSeries.js +148 -0
- package/lib/node_modules/echarts/lib/chart/gauge/GaugeView.js +528 -0
- package/lib/node_modules/echarts/lib/chart/gauge/PointerPath.js +46 -0
- package/lib/node_modules/echarts/lib/chart/gauge/install.js +13 -0
- package/lib/node_modules/echarts/lib/chart/graph/GraphSeries.js +238 -0
- package/lib/node_modules/echarts/lib/chart/graph/GraphView.js +230 -0
- package/lib/node_modules/echarts/lib/chart/graph/adjustEdge.js +137 -0
- package/lib/node_modules/echarts/lib/chart/graph/categoryFilter.js +38 -0
- package/lib/node_modules/echarts/lib/chart/graph/categoryVisual.js +54 -0
- package/lib/node_modules/echarts/lib/chart/graph/circularLayout.js +15 -0
- package/lib/node_modules/echarts/lib/chart/graph/circularLayoutHelper.js +156 -0
- package/lib/node_modules/echarts/lib/chart/graph/createView.js +66 -0
- package/lib/node_modules/echarts/lib/chart/graph/edgeVisual.js +57 -0
- package/lib/node_modules/echarts/lib/chart/graph/forceHelper.js +140 -0
- package/lib/node_modules/echarts/lib/chart/graph/forceLayout.js +124 -0
- package/lib/node_modules/echarts/lib/chart/graph/graphHelper.js +68 -0
- package/lib/node_modules/echarts/lib/chart/graph/install.js +61 -0
- package/lib/node_modules/echarts/lib/chart/graph/simpleLayout.js +42 -0
- package/lib/node_modules/echarts/lib/chart/graph/simpleLayoutHelper.js +35 -0
- package/lib/node_modules/echarts/lib/chart/heatmap/HeatmapLayer.js +128 -0
- package/lib/node_modules/echarts/lib/chart/heatmap/HeatmapSeries.js +52 -0
- package/lib/node_modules/echarts/lib/chart/heatmap/HeatmapView.js +275 -0
- package/lib/node_modules/echarts/lib/chart/heatmap/install.js +13 -0
- package/lib/node_modules/echarts/lib/chart/helper/EffectLine.js +168 -0
- package/lib/node_modules/echarts/lib/chart/helper/EffectPolyline.js +93 -0
- package/lib/node_modules/echarts/lib/chart/helper/EffectSymbol.js +169 -0
- package/lib/node_modules/echarts/lib/chart/helper/LargeLineDraw.js +263 -0
- package/lib/node_modules/echarts/lib/chart/helper/LargeSymbolDraw.js +273 -0
- package/lib/node_modules/echarts/lib/chart/helper/Line.js +382 -0
- package/lib/node_modules/echarts/lib/chart/helper/LineDraw.js +126 -0
- package/lib/node_modules/echarts/lib/chart/helper/LinePath.js +74 -0
- package/lib/node_modules/echarts/lib/chart/helper/Polyline.js +69 -0
- package/lib/node_modules/echarts/lib/chart/helper/Symbol.js +297 -0
- package/lib/node_modules/echarts/lib/chart/helper/SymbolDraw.js +176 -0
- package/lib/node_modules/echarts/lib/chart/helper/createClipPathFromCoordSys.js +113 -0
- package/lib/node_modules/echarts/lib/chart/helper/createGraphFromNodeEdge.js +78 -0
- package/lib/node_modules/echarts/lib/chart/helper/createRenderPlanner.js +26 -0
- package/lib/node_modules/echarts/lib/chart/helper/createSeriesData.js +125 -0
- package/lib/node_modules/echarts/lib/chart/helper/createSeriesDataSimply.js +32 -0
- package/lib/node_modules/echarts/lib/chart/helper/enableAriaDecalForTree.js +22 -0
- package/lib/node_modules/echarts/lib/chart/helper/labelHelper.js +42 -0
- package/lib/node_modules/echarts/lib/chart/helper/multipleGraphEdgeHelper.js +191 -0
- package/lib/node_modules/echarts/lib/chart/helper/sectorHelper.js +26 -0
- package/lib/node_modules/echarts/lib/chart/helper/treeHelper.js +59 -0
- package/lib/node_modules/echarts/lib/chart/helper/whiskerBoxCommon.js +100 -0
- package/lib/node_modules/echarts/lib/chart/line/LineSeries.js +116 -0
- package/lib/node_modules/echarts/lib/chart/line/LineView.js +1073 -0
- package/lib/node_modules/echarts/lib/chart/line/helper.js +88 -0
- package/lib/node_modules/echarts/lib/chart/line/install.js +32 -0
- package/lib/node_modules/echarts/lib/chart/line/lineAnimationDiff.js +129 -0
- package/lib/node_modules/echarts/lib/chart/line/poly.js +315 -0
- package/lib/node_modules/echarts/lib/chart/lines/LinesSeries.js +272 -0
- package/lib/node_modules/echarts/lib/chart/lines/LinesView.js +147 -0
- package/lib/node_modules/echarts/lib/chart/lines/install.js +17 -0
- package/lib/node_modules/echarts/lib/chart/lines/linesLayout.js +75 -0
- package/lib/node_modules/echarts/lib/chart/lines/linesVisual.js +78 -0
- package/lib/node_modules/echarts/lib/chart/map/MapSeries.js +210 -0
- package/lib/node_modules/echarts/lib/chart/map/MapView.js +141 -0
- package/lib/node_modules/echarts/lib/chart/map/install.js +22 -0
- package/lib/node_modules/echarts/lib/chart/map/mapDataStatistic.js +68 -0
- package/lib/node_modules/echarts/lib/chart/map/mapSymbolLayout.js +50 -0
- package/lib/node_modules/echarts/lib/chart/parallel/ParallelSeries.js +90 -0
- package/lib/node_modules/echarts/lib/chart/parallel/ParallelView.js +186 -0
- package/lib/node_modules/echarts/lib/chart/parallel/install.js +18 -0
- package/lib/node_modules/echarts/lib/chart/parallel/parallelVisual.js +73 -0
- package/lib/node_modules/echarts/lib/chart/pie/PieSeries.js +179 -0
- package/lib/node_modules/echarts/lib/chart/pie/PieView.js +248 -0
- package/lib/node_modules/echarts/lib/chart/pie/install.js +22 -0
- package/lib/node_modules/echarts/lib/chart/pie/labelLayout.js +437 -0
- package/lib/node_modules/echarts/lib/chart/pie/pieLayout.js +197 -0
- package/lib/node_modules/echarts/lib/chart/radar/RadarSeries.js +97 -0
- package/lib/node_modules/echarts/lib/chart/radar/RadarView.js +191 -0
- package/lib/node_modules/echarts/lib/chart/radar/backwardCompat.js +37 -0
- package/lib/node_modules/echarts/lib/chart/radar/install.js +22 -0
- package/lib/node_modules/echarts/lib/chart/radar/radarLayout.js +46 -0
- package/lib/node_modules/echarts/lib/chart/sankey/SankeySeries.js +178 -0
- package/lib/node_modules/echarts/lib/chart/sankey/SankeyView.js +291 -0
- package/lib/node_modules/echarts/lib/chart/sankey/install.js +31 -0
- package/lib/node_modules/echarts/lib/chart/sankey/sankeyLayout.js +453 -0
- package/lib/node_modules/echarts/lib/chart/sankey/sankeyVisual.js +56 -0
- package/lib/node_modules/echarts/lib/chart/scatter/ScatterSeries.js +83 -0
- package/lib/node_modules/echarts/lib/chart/scatter/ScatterView.js +96 -0
- package/lib/node_modules/echarts/lib/chart/scatter/install.js +19 -0
- package/lib/node_modules/echarts/lib/chart/sunburst/SunburstPiece.js +195 -0
- package/lib/node_modules/echarts/lib/chart/sunburst/SunburstSeries.js +169 -0
- package/lib/node_modules/echarts/lib/chart/sunburst/SunburstView.js +169 -0
- package/lib/node_modules/echarts/lib/chart/sunburst/install.js +22 -0
- package/lib/node_modules/echarts/lib/chart/sunburst/sunburstAction.js +73 -0
- package/lib/node_modules/echarts/lib/chart/sunburst/sunburstLayout.js +180 -0
- package/lib/node_modules/echarts/lib/chart/sunburst/sunburstVisual.js +39 -0
- package/lib/node_modules/echarts/lib/chart/themeRiver/ThemeRiverSeries.js +223 -0
- package/lib/node_modules/echarts/lib/chart/themeRiver/ThemeRiverView.js +150 -0
- package/lib/node_modules/echarts/lib/chart/themeRiver/install.js +17 -0
- package/lib/node_modules/echarts/lib/chart/themeRiver/themeRiverLayout.js +121 -0
- package/lib/node_modules/echarts/lib/chart/tree/TreeSeries.js +150 -0
- package/lib/node_modules/echarts/lib/chart/tree/TreeView.js +588 -0
- package/lib/node_modules/echarts/lib/chart/tree/install.js +19 -0
- package/lib/node_modules/echarts/lib/chart/tree/layoutHelper.js +243 -0
- package/lib/node_modules/echarts/lib/chart/tree/traversalHelper.js +92 -0
- package/lib/node_modules/echarts/lib/chart/tree/treeAction.js +46 -0
- package/lib/node_modules/echarts/lib/chart/tree/treeLayout.js +103 -0
- package/lib/node_modules/echarts/lib/chart/tree/treeVisual.js +21 -0
- package/lib/node_modules/echarts/lib/chart/treemap/Breadcrumb.js +153 -0
- package/lib/node_modules/echarts/lib/chart/treemap/TreemapSeries.js +330 -0
- package/lib/node_modules/echarts/lib/chart/treemap/TreemapView.js +817 -0
- package/lib/node_modules/echarts/lib/chart/treemap/install.js +19 -0
- package/lib/node_modules/echarts/lib/chart/treemap/treemapAction.js +39 -0
- package/lib/node_modules/echarts/lib/chart/treemap/treemapLayout.js +453 -0
- package/lib/node_modules/echarts/lib/chart/treemap/treemapVisual.js +158 -0
- package/lib/node_modules/echarts/lib/component/aria/install.js +13 -0
- package/lib/node_modules/echarts/lib/component/aria/preprocessor.js +25 -0
- package/lib/node_modules/echarts/lib/component/axis/AngleAxisView.js +290 -0
- package/lib/node_modules/echarts/lib/component/axis/AxisBuilder.js +539 -0
- package/lib/node_modules/echarts/lib/component/axis/AxisView.js +80 -0
- package/lib/node_modules/echarts/lib/component/axis/CartesianAxisView.js +197 -0
- package/lib/node_modules/echarts/lib/component/axis/ParallelAxisView.js +139 -0
- package/lib/node_modules/echarts/lib/component/axis/RadiusAxisView.js +172 -0
- package/lib/node_modules/echarts/lib/component/axis/SingleAxisView.js +111 -0
- package/lib/node_modules/echarts/lib/component/axis/axisSplitHelper.js +90 -0
- package/lib/node_modules/echarts/lib/component/axis/parallelAxisAction.js +75 -0
- package/lib/node_modules/echarts/lib/component/axisPointer/AxisPointerModel.js +75 -0
- package/lib/node_modules/echarts/lib/component/axisPointer/AxisPointerView.js +43 -0
- package/lib/node_modules/echarts/lib/component/axisPointer/BaseAxisPointer.js +358 -0
- package/lib/node_modules/echarts/lib/component/axisPointer/CartesianAxisPointer.js +111 -0
- package/lib/node_modules/echarts/lib/component/axisPointer/PolarAxisPointer.js +106 -0
- package/lib/node_modules/echarts/lib/component/axisPointer/SingleAxisPointer.js +108 -0
- package/lib/node_modules/echarts/lib/component/axisPointer/axisTrigger.js +342 -0
- package/lib/node_modules/echarts/lib/component/axisPointer/findPointFromSeries.js +62 -0
- package/lib/node_modules/echarts/lib/component/axisPointer/globalListener.js +103 -0
- package/lib/node_modules/echarts/lib/component/axisPointer/install.js +48 -0
- package/lib/node_modules/echarts/lib/component/axisPointer/modelHelper.js +263 -0
- package/lib/node_modules/echarts/lib/component/axisPointer/viewHelper.js +166 -0
- package/lib/node_modules/echarts/lib/component/brush/BrushModel.js +99 -0
- package/lib/node_modules/echarts/lib/component/brush/BrushView.js +74 -0
- package/lib/node_modules/echarts/lib/component/brush/install.js +64 -0
- package/lib/node_modules/echarts/lib/component/brush/preprocessor.js +51 -0
- package/lib/node_modules/echarts/lib/component/brush/selector.js +79 -0
- package/lib/node_modules/echarts/lib/component/brush/visualEncoding.js +220 -0
- package/lib/node_modules/echarts/lib/component/calendar/CalendarView.js +356 -0
- package/lib/node_modules/echarts/lib/component/calendar/install.js +15 -0
- package/lib/node_modules/echarts/lib/component/dataZoom/AxisProxy.js +305 -0
- package/lib/node_modules/echarts/lib/component/dataZoom/DataZoomModel.js +393 -0
- package/lib/node_modules/echarts/lib/component/dataZoom/DataZoomView.js +24 -0
- package/lib/node_modules/echarts/lib/component/dataZoom/InsideZoomModel.js +28 -0
- package/lib/node_modules/echarts/lib/component/dataZoom/InsideZoomView.js +161 -0
- package/lib/node_modules/echarts/lib/component/dataZoom/SelectZoomModel.js +19 -0
- package/lib/node_modules/echarts/lib/component/dataZoom/SelectZoomView.js +19 -0
- package/lib/node_modules/echarts/lib/component/dataZoom/SliderZoomModel.js +89 -0
- package/lib/node_modules/echarts/lib/component/dataZoom/SliderZoomView.js +786 -0
- package/lib/node_modules/echarts/lib/component/dataZoom/dataZoomAction.js +22 -0
- package/lib/node_modules/echarts/lib/component/dataZoom/dataZoomProcessor.js +93 -0
- package/lib/node_modules/echarts/lib/component/dataZoom/helper.js +128 -0
- package/lib/node_modules/echarts/lib/component/dataZoom/history.js +83 -0
- package/lib/node_modules/echarts/lib/component/dataZoom/install.js +16 -0
- package/lib/node_modules/echarts/lib/component/dataZoom/installCommon.js +22 -0
- package/lib/node_modules/echarts/lib/component/dataZoom/installDataZoomInside.js +17 -0
- package/lib/node_modules/echarts/lib/component/dataZoom/installDataZoomSelect.js +15 -0
- package/lib/node_modules/echarts/lib/component/dataZoom/installDataZoomSlider.js +15 -0
- package/lib/node_modules/echarts/lib/component/dataZoom/roams.js +188 -0
- package/lib/node_modules/echarts/lib/component/dataset/install.js +55 -0
- package/lib/node_modules/echarts/lib/component/geo/GeoView.js +73 -0
- package/lib/node_modules/echarts/lib/component/geo/install.js +105 -0
- package/lib/node_modules/echarts/lib/component/graphic/GraphicModel.js +208 -0
- package/lib/node_modules/echarts/lib/component/graphic/GraphicView.js +358 -0
- package/lib/node_modules/echarts/lib/component/graphic/install.js +38 -0
- package/lib/node_modules/echarts/lib/component/grid/install.js +14 -0
- package/lib/node_modules/echarts/lib/component/grid/installSimple.js +61 -0
- package/lib/node_modules/echarts/lib/component/helper/BrushController.js +717 -0
- package/lib/node_modules/echarts/lib/component/helper/BrushTargetManager.js +306 -0
- package/lib/node_modules/echarts/lib/component/helper/MapDraw.js +639 -0
- package/lib/node_modules/echarts/lib/component/helper/RoamController.js +207 -0
- package/lib/node_modules/echarts/lib/component/helper/brushHelper.js +37 -0
- package/lib/node_modules/echarts/lib/component/helper/cursorHelper.js +63 -0
- package/lib/node_modules/echarts/lib/component/helper/interactionMutex.js +42 -0
- package/lib/node_modules/echarts/lib/component/helper/listComponent.js +52 -0
- package/lib/node_modules/echarts/lib/component/helper/roamHelper.js +80 -0
- package/lib/node_modules/echarts/lib/component/helper/sliderMove.js +119 -0
- package/lib/node_modules/echarts/lib/component/legend/LegendModel.js +280 -0
- package/lib/node_modules/echarts/lib/component/legend/LegendView.js +490 -0
- package/lib/node_modules/echarts/lib/component/legend/ScrollableLegendModel.js +67 -0
- package/lib/node_modules/echarts/lib/component/legend/ScrollableLegendView.js +365 -0
- package/lib/node_modules/echarts/lib/component/legend/install.js +14 -0
- package/lib/node_modules/echarts/lib/component/legend/installLegendPlain.js +20 -0
- package/lib/node_modules/echarts/lib/component/legend/installLegendScroll.js +18 -0
- package/lib/node_modules/echarts/lib/component/legend/legendAction.js +76 -0
- package/lib/node_modules/echarts/lib/component/legend/legendFilter.js +65 -0
- package/lib/node_modules/echarts/lib/component/legend/scrollableLegendAction.js +66 -0
- package/lib/node_modules/echarts/lib/component/marker/MarkAreaModel.js +48 -0
- package/lib/node_modules/echarts/lib/component/marker/MarkAreaView.js +328 -0
- package/lib/node_modules/echarts/lib/component/marker/MarkLineModel.js +51 -0
- package/lib/node_modules/echarts/lib/component/marker/MarkLineView.js +326 -0
- package/lib/node_modules/echarts/lib/component/marker/MarkPointModel.js +45 -0
- package/lib/node_modules/echarts/lib/component/marker/MarkPointView.js +154 -0
- package/lib/node_modules/echarts/lib/component/marker/MarkerModel.js +129 -0
- package/lib/node_modules/echarts/lib/component/marker/MarkerView.js +58 -0
- package/lib/node_modules/echarts/lib/component/marker/checkMarkerInSeries.js +20 -0
- package/lib/node_modules/echarts/lib/component/marker/installMarkArea.js +20 -0
- package/lib/node_modules/echarts/lib/component/marker/installMarkLine.js +20 -0
- package/lib/node_modules/echarts/lib/component/marker/installMarkPoint.js +20 -0
- package/lib/node_modules/echarts/lib/component/marker/markerHelper.js +157 -0
- package/lib/node_modules/echarts/lib/component/parallel/ParallelView.js +100 -0
- package/lib/node_modules/echarts/lib/component/parallel/install.js +37 -0
- package/lib/node_modules/echarts/lib/component/polar/install.js +55 -0
- package/lib/node_modules/echarts/lib/component/radar/RadarView.js +170 -0
- package/lib/node_modules/echarts/lib/component/radar/install.js +27 -0
- package/lib/node_modules/echarts/lib/component/singleAxis/install.js +37 -0
- package/lib/node_modules/echarts/lib/component/timeline/SliderTimelineModel.js +122 -0
- package/lib/node_modules/echarts/lib/component/timeline/SliderTimelineView.js +619 -0
- package/lib/node_modules/echarts/lib/component/timeline/TimelineAxis.js +34 -0
- package/lib/node_modules/echarts/lib/component/timeline/TimelineModel.js +151 -0
- package/lib/node_modules/echarts/lib/component/timeline/TimelineView.js +19 -0
- package/lib/node_modules/echarts/lib/component/timeline/install.js +21 -0
- package/lib/node_modules/echarts/lib/component/timeline/preprocessor.js +76 -0
- package/lib/node_modules/echarts/lib/component/timeline/timelineAction.js +46 -0
- package/lib/node_modules/echarts/lib/component/title/install.js +191 -0
- package/lib/node_modules/echarts/lib/component/toolbox/ToolboxModel.js +71 -0
- package/lib/node_modules/echarts/lib/component/toolbox/ToolboxView.js +261 -0
- package/lib/node_modules/echarts/lib/component/toolbox/feature/Brush.js +95 -0
- package/lib/node_modules/echarts/lib/component/toolbox/feature/DataView.js +410 -0
- package/lib/node_modules/echarts/lib/component/toolbox/feature/DataZoom.js +211 -0
- package/lib/node_modules/echarts/lib/component/toolbox/feature/MagicType.js +170 -0
- package/lib/node_modules/echarts/lib/component/toolbox/feature/Restore.js +42 -0
- package/lib/node_modules/echarts/lib/component/toolbox/feature/SaveAsImage.js +109 -0
- package/lib/node_modules/echarts/lib/component/toolbox/featureManager.js +43 -0
- package/lib/node_modules/echarts/lib/component/toolbox/install.js +27 -0
- package/lib/node_modules/echarts/lib/component/tooltip/TooltipHTMLContent.js +361 -0
- package/lib/node_modules/echarts/lib/component/tooltip/TooltipModel.js +88 -0
- package/lib/node_modules/echarts/lib/component/tooltip/TooltipRichContent.js +172 -0
- package/lib/node_modules/echarts/lib/component/tooltip/TooltipView.js +807 -0
- package/lib/node_modules/echarts/lib/component/tooltip/helper.js +46 -0
- package/lib/node_modules/echarts/lib/component/tooltip/install.js +35 -0
- package/lib/node_modules/echarts/lib/component/tooltip/seriesFormatTooltip.js +106 -0
- package/lib/node_modules/echarts/lib/component/tooltip/tooltipMarkup.js +292 -0
- package/lib/node_modules/echarts/lib/component/transform/filterTransform.js +60 -0
- package/lib/node_modules/echarts/lib/component/transform/install.js +13 -0
- package/lib/node_modules/echarts/lib/component/transform/sortTransform.js +119 -0
- package/lib/node_modules/echarts/lib/component/visualMap/ContinuousModel.js +219 -0
- package/lib/node_modules/echarts/lib/component/visualMap/ContinuousView.js +655 -0
- package/lib/node_modules/echarts/lib/component/visualMap/PiecewiseModel.js +401 -0
- package/lib/node_modules/echarts/lib/component/visualMap/PiecewiseView.js +178 -0
- package/lib/node_modules/echarts/lib/component/visualMap/VisualMapModel.js +376 -0
- package/lib/node_modules/echarts/lib/component/visualMap/VisualMapView.js +118 -0
- package/lib/node_modules/echarts/lib/component/visualMap/helper.js +55 -0
- package/lib/node_modules/echarts/lib/component/visualMap/install.js +16 -0
- package/lib/node_modules/echarts/lib/component/visualMap/installCommon.js +27 -0
- package/lib/node_modules/echarts/lib/component/visualMap/installVisualMapContinuous.js +15 -0
- package/lib/node_modules/echarts/lib/component/visualMap/installVisualMapPiecewise.js +15 -0
- package/lib/node_modules/echarts/lib/component/visualMap/preprocessor.js +41 -0
- package/lib/node_modules/echarts/lib/component/visualMap/visualEncoding.js +72 -0
- package/lib/node_modules/echarts/lib/component/visualMap/visualMapAction.js +63 -0
- package/lib/node_modules/echarts/lib/coord/Axis.js +243 -0
- package/lib/node_modules/echarts/lib/coord/CoordinateSystem.js +51 -0
- package/lib/node_modules/echarts/lib/coord/View.js +209 -0
- package/lib/node_modules/echarts/lib/coord/axisAlignTicks.js +101 -0
- package/lib/node_modules/echarts/lib/coord/axisCommonTypes.js +54 -0
- package/lib/node_modules/echarts/lib/coord/axisDefault.js +166 -0
- package/lib/node_modules/echarts/lib/coord/axisHelper.js +322 -0
- package/lib/node_modules/echarts/lib/coord/axisModelCommonMixin.js +64 -0
- package/lib/node_modules/echarts/lib/coord/axisModelCreator.js +74 -0
- package/lib/node_modules/echarts/lib/coord/axisTickLabelBuilder.js +289 -0
- package/lib/node_modules/echarts/lib/coord/calendar/Calendar.js +337 -0
- package/lib/node_modules/echarts/lib/coord/calendar/CalendarModel.js +122 -0
- package/lib/node_modules/echarts/lib/coord/calendar/prepareCustom.js +74 -0
- package/lib/node_modules/echarts/lib/coord/cartesian/Axis2D.js +57 -0
- package/lib/node_modules/echarts/lib/coord/cartesian/AxisModel.js +25 -0
- package/lib/node_modules/echarts/lib/coord/cartesian/Cartesian.js +36 -0
- package/lib/node_modules/echarts/lib/coord/cartesian/Cartesian2D.js +132 -0
- package/lib/node_modules/echarts/lib/coord/cartesian/Grid.js +450 -0
- package/lib/node_modules/echarts/lib/coord/cartesian/GridModel.js +35 -0
- package/lib/node_modules/echarts/lib/coord/cartesian/cartesianAxisHelper.js +85 -0
- package/lib/node_modules/echarts/lib/coord/cartesian/prepareCustom.js +38 -0
- package/lib/node_modules/echarts/lib/coord/geo/Geo.js +172 -0
- package/lib/node_modules/echarts/lib/coord/geo/GeoJSONResource.js +106 -0
- package/lib/node_modules/echarts/lib/coord/geo/GeoModel.js +174 -0
- package/lib/node_modules/echarts/lib/coord/geo/GeoSVGResource.js +296 -0
- package/lib/node_modules/echarts/lib/coord/geo/Region.js +249 -0
- package/lib/node_modules/echarts/lib/coord/geo/fix/diaoyuIsland.js +61 -0
- package/lib/node_modules/echarts/lib/coord/geo/fix/nanhai.js +36 -0
- package/lib/node_modules/echarts/lib/coord/geo/fix/textCoord.js +68 -0
- package/lib/node_modules/echarts/lib/coord/geo/geoCreator.js +199 -0
- package/lib/node_modules/echarts/lib/coord/geo/geoSourceManager.js +85 -0
- package/lib/node_modules/echarts/lib/coord/geo/parseGeoJson.js +107 -0
- package/lib/node_modules/echarts/lib/coord/geo/prepareCustom.js +43 -0
- package/lib/node_modules/echarts/lib/coord/parallel/AxisModel.js +77 -0
- package/lib/node_modules/echarts/lib/coord/parallel/Parallel.js +369 -0
- package/lib/node_modules/echarts/lib/coord/parallel/ParallelAxis.js +22 -0
- package/lib/node_modules/echarts/lib/coord/parallel/ParallelModel.js +85 -0
- package/lib/node_modules/echarts/lib/coord/parallel/parallelCreator.js +31 -0
- package/lib/node_modules/echarts/lib/coord/parallel/parallelPreprocessor.js +48 -0
- package/lib/node_modules/echarts/lib/coord/polar/AngleAxis.js +74 -0
- package/lib/node_modules/echarts/lib/coord/polar/AxisModel.js +46 -0
- package/lib/node_modules/echarts/lib/coord/polar/Polar.js +180 -0
- package/lib/node_modules/echarts/lib/coord/polar/PolarModel.js +36 -0
- package/lib/node_modules/echarts/lib/coord/polar/RadiusAxis.js +21 -0
- package/lib/node_modules/echarts/lib/coord/polar/polarCreator.js +120 -0
- package/lib/node_modules/echarts/lib/coord/polar/prepareCustom.js +50 -0
- package/lib/node_modules/echarts/lib/coord/radar/IndicatorAxis.js +20 -0
- package/lib/node_modules/echarts/lib/coord/radar/Radar.js +156 -0
- package/lib/node_modules/echarts/lib/coord/radar/RadarModel.js +122 -0
- package/lib/node_modules/echarts/lib/coord/scaleRawExtentInfo.js +205 -0
- package/lib/node_modules/echarts/lib/coord/single/AxisModel.js +66 -0
- package/lib/node_modules/echarts/lib/coord/single/Single.js +171 -0
- package/lib/node_modules/echarts/lib/coord/single/SingleAxis.js +29 -0
- package/lib/node_modules/echarts/lib/coord/single/prepareCustom.js +34 -0
- package/lib/node_modules/echarts/lib/coord/single/singleAxisHelper.js +52 -0
- package/lib/node_modules/echarts/lib/coord/single/singleCreator.js +33 -0
- package/lib/node_modules/echarts/lib/core/CoordinateSystem.js +37 -0
- package/lib/node_modules/echarts/lib/core/ExtensionAPI.js +22 -0
- package/lib/node_modules/echarts/lib/core/Scheduler.js +451 -0
- package/lib/node_modules/echarts/lib/core/echarts.js +2255 -0
- package/lib/node_modules/echarts/lib/core/impl.js +30 -0
- package/lib/node_modules/echarts/lib/core/lifecycle.js +9 -0
- package/lib/node_modules/echarts/lib/core/locale.js +55 -0
- package/lib/node_modules/echarts/lib/core/task.js +308 -0
- package/lib/node_modules/echarts/lib/data/DataDiffer.js +257 -0
- package/lib/node_modules/echarts/lib/data/DataStore.js +967 -0
- package/lib/node_modules/echarts/lib/data/Graph.js +408 -0
- package/lib/node_modules/echarts/lib/data/OrdinalMeta.js +86 -0
- package/lib/node_modules/echarts/lib/data/SeriesData.js +943 -0
- package/lib/node_modules/echarts/lib/data/SeriesDimensionDefine.js +53 -0
- package/lib/node_modules/echarts/lib/data/Source.js +267 -0
- package/lib/node_modules/echarts/lib/data/Tree.js +312 -0
- package/lib/node_modules/echarts/lib/data/helper/SeriesDataSchema.js +191 -0
- package/lib/node_modules/echarts/lib/data/helper/createDimensions.js +287 -0
- package/lib/node_modules/echarts/lib/data/helper/dataProvider.js +321 -0
- package/lib/node_modules/echarts/lib/data/helper/dataStackHelper.js +145 -0
- package/lib/node_modules/echarts/lib/data/helper/dataValueHelper.js +203 -0
- package/lib/node_modules/echarts/lib/data/helper/dimensionHelper.js +136 -0
- package/lib/node_modules/echarts/lib/data/helper/linkSeriesData.js +110 -0
- package/lib/node_modules/echarts/lib/data/helper/sourceHelper.js +324 -0
- package/lib/node_modules/echarts/lib/data/helper/sourceManager.js +381 -0
- package/lib/node_modules/echarts/lib/data/helper/transform.js +382 -0
- package/lib/node_modules/echarts/lib/export/api/format.js +21 -0
- package/lib/node_modules/echarts/lib/export/api/graphic.js +59 -0
- package/lib/node_modules/echarts/lib/export/api/helper.js +81 -0
- package/lib/node_modules/echarts/lib/export/api/number.js +26 -0
- package/lib/node_modules/echarts/lib/export/api/time.js +11 -0
- package/lib/node_modules/echarts/lib/export/api/util.js +24 -0
- package/lib/node_modules/echarts/lib/export/api.js +72 -0
- package/lib/node_modules/echarts/lib/export/core.js +73 -0
- package/lib/node_modules/echarts/lib/extension.js +74 -0
- package/lib/node_modules/echarts/lib/i18n/langEN.js +162 -0
- package/lib/node_modules/echarts/lib/i18n/langZH.js +159 -0
- package/lib/node_modules/echarts/lib/label/LabelManager.js +399 -0
- package/lib/node_modules/echarts/lib/label/installLabelLayout.js +29 -0
- package/lib/node_modules/echarts/lib/label/labelGuideHelper.js +512 -0
- package/lib/node_modules/echarts/lib/label/labelLayoutHelper.js +268 -0
- package/lib/node_modules/echarts/lib/label/labelStyle.js +456 -0
- package/lib/node_modules/echarts/lib/label/sectorLabel.js +166 -0
- package/lib/node_modules/echarts/lib/layout/barGrid.js +445 -0
- package/lib/node_modules/echarts/lib/layout/barPolar.js +217 -0
- package/lib/node_modules/echarts/lib/layout/points.js +68 -0
- package/lib/node_modules/echarts/lib/legacy/dataSelectAction.js +81 -0
- package/lib/node_modules/echarts/lib/legacy/getTextRect.js +24 -0
- package/lib/node_modules/echarts/lib/loading/default.js +128 -0
- package/lib/node_modules/echarts/lib/model/Component.js +197 -0
- package/lib/node_modules/echarts/lib/model/Global.js +697 -0
- package/lib/node_modules/echarts/lib/model/Model.js +138 -0
- package/lib/node_modules/echarts/lib/model/OptionManager.js +323 -0
- package/lib/node_modules/echarts/lib/model/Series.js +507 -0
- package/lib/node_modules/echarts/lib/model/globalDefault.js +136 -0
- package/lib/node_modules/echarts/lib/model/internalComponentCreator.js +31 -0
- package/lib/node_modules/echarts/lib/model/mixin/areaStyle.js +22 -0
- package/lib/node_modules/echarts/lib/model/mixin/dataFormat.js +165 -0
- package/lib/node_modules/echarts/lib/model/mixin/itemStyle.js +22 -0
- package/lib/node_modules/echarts/lib/model/mixin/lineStyle.js +22 -0
- package/lib/node_modules/echarts/lib/model/mixin/makeStyleMapper.js +32 -0
- package/lib/node_modules/echarts/lib/model/mixin/palette.js +69 -0
- package/lib/node_modules/echarts/lib/model/mixin/textStyle.js +49 -0
- package/lib/node_modules/echarts/lib/model/referHelper.js +132 -0
- package/lib/node_modules/echarts/lib/preprocessor/backwardCompat.js +219 -0
- package/lib/node_modules/echarts/lib/preprocessor/helper/compatStyle.js +295 -0
- package/lib/node_modules/echarts/lib/processor/dataFilter.js +73 -0
- package/lib/node_modules/echarts/lib/processor/dataSample.js +105 -0
- package/lib/node_modules/echarts/lib/processor/dataStack.js +97 -0
- package/lib/node_modules/echarts/lib/processor/negativeDataFilter.js +25 -0
- package/lib/node_modules/echarts/lib/renderer/installCanvasRenderer.js +11 -0
- package/lib/node_modules/echarts/lib/renderer/installSVGRenderer.js +11 -0
- package/lib/node_modules/echarts/lib/scale/Interval.js +230 -0
- package/lib/node_modules/echarts/lib/scale/Log.js +140 -0
- package/lib/node_modules/echarts/lib/scale/Ordinal.js +171 -0
- package/lib/node_modules/echarts/lib/scale/Scale.js +75 -0
- package/lib/node_modules/echarts/lib/scale/Time.js +455 -0
- package/lib/node_modules/echarts/lib/scale/helper.js +94 -0
- package/lib/node_modules/echarts/lib/theme/dark.js +227 -0
- package/lib/node_modules/echarts/lib/theme/light.js +53 -0
- package/lib/node_modules/echarts/lib/util/ECEventProcessor.js +106 -0
- package/lib/node_modules/echarts/lib/util/animation.js +125 -0
- package/lib/node_modules/echarts/lib/util/clazz.js +274 -0
- package/lib/node_modules/echarts/lib/util/component.js +153 -0
- package/lib/node_modules/echarts/lib/util/conditionalExpression.js +219 -0
- package/lib/node_modules/echarts/lib/util/decal.js +356 -0
- package/lib/node_modules/echarts/lib/util/event.js +61 -0
- package/lib/node_modules/echarts/lib/util/format.js +214 -0
- package/lib/node_modules/echarts/lib/util/graphic.js +527 -0
- package/lib/node_modules/echarts/lib/util/innerStore.js +31 -0
- package/lib/node_modules/echarts/lib/util/layout.js +422 -0
- package/lib/node_modules/echarts/lib/util/log.js +104 -0
- package/lib/node_modules/echarts/lib/util/model.js +681 -0
- package/lib/node_modules/echarts/lib/util/number.js +542 -0
- package/lib/node_modules/echarts/lib/util/shape/sausage.js +71 -0
- package/lib/node_modules/echarts/lib/util/states.js +697 -0
- package/lib/node_modules/echarts/lib/util/styleCompat.js +193 -0
- package/lib/node_modules/echarts/lib/util/symbol.js +304 -0
- package/lib/node_modules/echarts/lib/util/throttle.js +178 -0
- package/lib/node_modules/echarts/lib/util/time.js +265 -0
- package/lib/node_modules/echarts/lib/util/types.js +25 -0
- package/lib/node_modules/echarts/lib/util/vendor.js +19 -0
- package/lib/node_modules/echarts/lib/view/Chart.js +164 -0
- package/lib/node_modules/echarts/lib/view/Component.js +51 -0
- package/lib/node_modules/echarts/lib/visual/LegendVisualProvider.js +85 -0
- package/lib/node_modules/echarts/lib/visual/VisualMapping.js +442 -0
- package/lib/node_modules/echarts/lib/visual/aria.js +193 -0
- package/lib/node_modules/echarts/lib/visual/decal.js +30 -0
- package/lib/node_modules/echarts/lib/visual/helper.js +107 -0
- package/lib/node_modules/echarts/lib/visual/style.js +181 -0
- package/lib/node_modules/echarts/lib/visual/symbol.js +88 -0
- package/lib/node_modules/echarts/lib/visual/visualDefault.js +51 -0
- package/lib/node_modules/echarts/lib/visual/visualSolution.js +166 -0
- package/lib/node_modules/zrender/lib/Element.js +1058 -0
- package/lib/node_modules/zrender/lib/Handler.js +302 -0
- package/lib/node_modules/zrender/lib/Storage.js +165 -0
- package/lib/node_modules/zrender/lib/animation/Animation.js +155 -0
- package/lib/node_modules/zrender/lib/animation/Animator.js +744 -0
- package/lib/node_modules/zrender/lib/animation/Clip.js +71 -0
- package/lib/node_modules/zrender/lib/animation/cubicEasing.js +30 -0
- package/lib/node_modules/zrender/lib/animation/easing.js +201 -0
- package/lib/node_modules/zrender/lib/animation/requestAnimationFrame.js +17 -0
- package/lib/node_modules/zrender/lib/canvas/Layer.js +302 -0
- package/lib/node_modules/zrender/lib/canvas/Painter.js +647 -0
- package/lib/node_modules/zrender/lib/canvas/dashStyle.js +35 -0
- package/lib/node_modules/zrender/lib/canvas/graphic.js +567 -0
- package/lib/node_modules/zrender/lib/canvas/helper.js +89 -0
- package/lib/node_modules/zrender/lib/config.js +23 -0
- package/lib/node_modules/zrender/lib/contain/arc.js +42 -0
- package/lib/node_modules/zrender/lib/contain/cubic.js +22 -0
- package/lib/node_modules/zrender/lib/contain/line.js +30 -0
- package/lib/node_modules/zrender/lib/contain/path.js +315 -0
- package/lib/node_modules/zrender/lib/contain/polygon.js +29 -0
- package/lib/node_modules/zrender/lib/contain/quadratic.js +22 -0
- package/lib/node_modules/zrender/lib/contain/text.js +181 -0
- package/lib/node_modules/zrender/lib/contain/util.js +14 -0
- package/lib/node_modules/zrender/lib/contain/windingLine.js +21 -0
- package/lib/node_modules/zrender/lib/core/BoundingRect.js +222 -0
- package/lib/node_modules/zrender/lib/core/Eventful.js +168 -0
- package/lib/node_modules/zrender/lib/core/GestureMgr.js +88 -0
- package/lib/node_modules/zrender/lib/core/LRU.js +116 -0
- package/lib/node_modules/zrender/lib/core/OrientedBoundingRect.js +127 -0
- package/lib/node_modules/zrender/lib/core/PathProxy.js +705 -0
- package/lib/node_modules/zrender/lib/core/Point.js +135 -0
- package/lib/node_modules/zrender/lib/core/Transformable.js +252 -0
- package/lib/node_modules/zrender/lib/core/WeakMap.js +48 -0
- package/lib/node_modules/zrender/lib/core/bbox.js +135 -0
- package/lib/node_modules/zrender/lib/core/curve.js +365 -0
- package/lib/node_modules/zrender/lib/core/dom.js +104 -0
- package/lib/node_modules/zrender/lib/core/env.js +86 -0
- package/lib/node_modules/zrender/lib/core/event.js +118 -0
- package/lib/node_modules/zrender/lib/core/fourPointsTransform.js +65 -0
- package/lib/node_modules/zrender/lib/core/matrix.js +113 -0
- package/lib/node_modules/zrender/lib/core/platform.js +83 -0
- package/lib/node_modules/zrender/lib/core/timsort.js +528 -0
- package/lib/node_modules/zrender/lib/core/util.js +596 -0
- package/lib/node_modules/zrender/lib/core/vector.js +142 -0
- package/lib/node_modules/zrender/lib/dom/HandlerProxy.js +300 -0
- package/lib/node_modules/zrender/lib/graphic/CompoundPath.js +56 -0
- package/lib/node_modules/zrender/lib/graphic/Displayable.js +333 -0
- package/lib/node_modules/zrender/lib/graphic/Gradient.js +19 -0
- package/lib/node_modules/zrender/lib/graphic/Group.js +186 -0
- package/lib/node_modules/zrender/lib/graphic/Image.js +82 -0
- package/lib/node_modules/zrender/lib/graphic/IncrementalDisplayable.js +119 -0
- package/lib/node_modules/zrender/lib/graphic/LinearGradient.js +24 -0
- package/lib/node_modules/zrender/lib/graphic/Path.js +407 -0
- package/lib/node_modules/zrender/lib/graphic/RadialGradient.js +23 -0
- package/lib/node_modules/zrender/lib/graphic/TSpan.js +71 -0
- package/lib/node_modules/zrender/lib/graphic/Text.js +560 -0
- package/lib/node_modules/zrender/lib/graphic/constants.js +11 -0
- package/lib/node_modules/zrender/lib/graphic/helper/image.js +63 -0
- package/lib/node_modules/zrender/lib/graphic/helper/parseText.js +478 -0
- package/lib/node_modules/zrender/lib/graphic/helper/poly.js +32 -0
- package/lib/node_modules/zrender/lib/graphic/helper/roundRect.js +81 -0
- package/lib/node_modules/zrender/lib/graphic/helper/roundSector.js +234 -0
- package/lib/node_modules/zrender/lib/graphic/helper/smoothBezier.js +70 -0
- package/lib/node_modules/zrender/lib/graphic/helper/subPixelOptimize.js +64 -0
- package/lib/node_modules/zrender/lib/graphic/shape/Arc.js +51 -0
- package/lib/node_modules/zrender/lib/graphic/shape/BezierCurve.js +105 -0
- package/lib/node_modules/zrender/lib/graphic/shape/Circle.js +34 -0
- package/lib/node_modules/zrender/lib/graphic/shape/Ellipse.js +46 -0
- package/lib/node_modules/zrender/lib/graphic/shape/Line.js +76 -0
- package/lib/node_modules/zrender/lib/graphic/shape/Polygon.js +34 -0
- package/lib/node_modules/zrender/lib/graphic/shape/Polyline.js +41 -0
- package/lib/node_modules/zrender/lib/graphic/shape/Rect.js +64 -0
- package/lib/node_modules/zrender/lib/graphic/shape/Ring.js +40 -0
- package/lib/node_modules/zrender/lib/graphic/shape/Sector.js +43 -0
- package/lib/node_modules/zrender/lib/mixin/Draggable.js +72 -0
- package/lib/node_modules/zrender/lib/svg/Painter.js +259 -0
- package/lib/node_modules/zrender/lib/svg/SVGPathRebuilder.js +110 -0
- package/lib/node_modules/zrender/lib/svg/core.js +123 -0
- package/lib/node_modules/zrender/lib/svg/cssAnimation.js +283 -0
- package/lib/node_modules/zrender/lib/svg/cssClassId.js +10 -0
- package/lib/node_modules/zrender/lib/svg/cssEmphasis.js +67 -0
- package/lib/node_modules/zrender/lib/svg/domapi.js +33 -0
- package/lib/node_modules/zrender/lib/svg/graphic.js +492 -0
- package/lib/node_modules/zrender/lib/svg/helper.js +165 -0
- package/lib/node_modules/zrender/lib/svg/mapStyleToAttrs.js +88 -0
- package/lib/node_modules/zrender/lib/svg/patch.js +261 -0
- package/lib/node_modules/zrender/lib/tool/color.js +448 -0
- package/lib/node_modules/zrender/lib/tool/convertPath.js +205 -0
- package/lib/node_modules/zrender/lib/tool/dividePath.js +319 -0
- package/lib/node_modules/zrender/lib/tool/morphPath.js +602 -0
- package/lib/node_modules/zrender/lib/tool/parseSVG.js +644 -0
- package/lib/node_modules/zrender/lib/tool/parseXML.js +22 -0
- package/lib/node_modules/zrender/lib/tool/path.js +379 -0
- package/lib/node_modules/zrender/lib/tool/transformPath.js +88 -0
- package/lib/node_modules/zrender/lib/zrender.js +341 -0
- package/lib/package/PackageParser.d.ts +4 -1
- package/lib/package/XMLPackageParser.d.ts +5 -2
- package/lib/package/ZipPackageParser.d.ts +5 -2
- package/lib/package/ZipPackageParser.js +12 -4
- package/lib/util/fflate.d.ts +1168 -0
- package/lib/util/fflate.js +1139 -0
- package/lib/util/fileType.js +6 -0
- package/lib/util/graph.d.ts +46 -0
- package/lib/word/parse/defaultXML/settingsXML.d.ts +1 -0
- package/lib/word/parse/defaultXML/settingsXML.js +9 -0
- package/lib/word/parse/defaultXML/stylesXML.d.ts +1 -0
- package/lib/word/parse/defaultXML/stylesXML.js +9 -0
- package/lib/word/parse/defaultXML/themeXML.d.ts +1 -0
- package/lib/word/parse/defaultXML/themeXML.js +9 -0
- package/lib/word/parse/jcToTextAlign.d.ts +1 -1
- package/lib/word/parse/jcToTextAlign.js +2 -1
- package/package.json +7 -4
|
@@ -0,0 +1,2225 @@
|
|
|
1
|
+
import { __extends } from 'tslib';
|
|
2
|
+
import { init as init$1, registerSSRDataGetter } from '../../../zrender/lib/zrender.js';
|
|
3
|
+
import { isString, retrieve2, bind, clone, setAsPrimitive, isObject, each, extend, assert, createHashMap, map, defaults, isDom, isArray, indexOf, noop, isFunction } from '../../../zrender/lib/core/util.js';
|
|
4
|
+
import env from '../../../zrender/lib/core/env.js';
|
|
5
|
+
import sort from '../../../zrender/lib/core/timsort.js';
|
|
6
|
+
import Eventful from '../../../zrender/lib/core/Eventful.js';
|
|
7
|
+
import GlobalModel from '../model/Global.js';
|
|
8
|
+
import ExtensionAPI from './ExtensionAPI.js';
|
|
9
|
+
import CoordinateSystemManager from './CoordinateSystem.js';
|
|
10
|
+
import OptionManager from '../model/OptionManager.js';
|
|
11
|
+
import globalBackwardCompat from '../preprocessor/backwardCompat.js';
|
|
12
|
+
import dataStack from '../processor/dataStack.js';
|
|
13
|
+
import SeriesModel from '../model/Series.js';
|
|
14
|
+
import ComponentView from '../view/Component.js';
|
|
15
|
+
import ChartView from '../view/Chart.js';
|
|
16
|
+
import '../util/graphic.js';
|
|
17
|
+
import { getECData } from '../util/innerStore.js';
|
|
18
|
+
import { isSelectChangePayload, isHighDownPayload, allLeaveBlur, getAllSelectedIndices, updateSeriesElementSelection, HOVER_STATE_EMPHASIS, HOVER_STATE_BLUR, savePathStates, enterEmphasis, leaveEmphasis, enterBlur, leaveBlur, enterSelect, leaveSelect, HIGHLIGHT_ACTION_TYPE, DOWNPLAY_ACTION_TYPE, SELECT_ACTION_TYPE, UNSELECT_ACTION_TYPE, TOGGLE_SELECT_ACTION_TYPE, blurSeriesFromHighlightPayload, findComponentHighDownDispatchers, blurComponent, toggleSelectionFromPayload, isHighDownDispatcher, handleGlobalMouseOverForHighDown, handleGlobalMouseOutForHighDown } from '../util/states.js';
|
|
19
|
+
import { parseFinder, setAttribute, preParseFinder, getAttribute, convertOptionIdName, normalizeToArray } from '../util/model.js';
|
|
20
|
+
import { throttle } from '../util/throttle.js';
|
|
21
|
+
import { seriesStyleTask, dataStyleTask, dataColorPaletteTask } from '../visual/style.js';
|
|
22
|
+
import defaultLoading from '../loading/default.js';
|
|
23
|
+
import Scheduler from './Scheduler.js';
|
|
24
|
+
import lightTheme from '../theme/light.js';
|
|
25
|
+
import theme from '../theme/dark.js';
|
|
26
|
+
import { parseClassType } from '../util/clazz.js';
|
|
27
|
+
import { ECEventProcessor } from '../util/ECEventProcessor.js';
|
|
28
|
+
import { seriesSymbolTask, dataSymbolTask } from '../visual/symbol.js';
|
|
29
|
+
import { getItemVisualFromData, getVisualFromData } from '../visual/helper.js';
|
|
30
|
+
import { error, deprecateLog, deprecateReplaceLog, warn } from '../util/log.js';
|
|
31
|
+
import { handleLegacySelectEvents } from '../legacy/dataSelectAction.js';
|
|
32
|
+
import { registerExternalTransform } from '../data/helper/transform.js';
|
|
33
|
+
import { createLocaleObject, SYSTEM_LANG } from './locale.js';
|
|
34
|
+
export { registerLocale } from './locale.js';
|
|
35
|
+
import { findEventDispatcher } from '../util/event.js';
|
|
36
|
+
import decalVisual from '../visual/decal.js';
|
|
37
|
+
import lifecycle from './lifecycle.js';
|
|
38
|
+
import { platformApi, setPlatformAPI } from '../../../zrender/lib/core/platform.js';
|
|
39
|
+
import { getImpl } from './impl.js';
|
|
40
|
+
import Rect from '../../../zrender/lib/graphic/shape/Rect.js';
|
|
41
|
+
import ZRImage from '../../../zrender/lib/graphic/Image.js';
|
|
42
|
+
import { isElementRemoved } from '../animation/basicTransition.js';
|
|
43
|
+
import Path from '../../../zrender/lib/graphic/Path.js';
|
|
44
|
+
|
|
45
|
+
var version = '5.5.0';
|
|
46
|
+
var dependencies = {
|
|
47
|
+
zrender: '5.5.0'
|
|
48
|
+
};
|
|
49
|
+
var TEST_FRAME_REMAIN_TIME = 1;
|
|
50
|
+
var PRIORITY_PROCESSOR_SERIES_FILTER = 800;
|
|
51
|
+
// Some data processors depends on the stack result dimension (to calculate data extent).
|
|
52
|
+
// So data stack stage should be in front of data processing stage.
|
|
53
|
+
var PRIORITY_PROCESSOR_DATASTACK = 900;
|
|
54
|
+
// "Data filter" will block the stream, so it should be
|
|
55
|
+
// put at the beginning of data processing.
|
|
56
|
+
var PRIORITY_PROCESSOR_FILTER = 1000;
|
|
57
|
+
var PRIORITY_PROCESSOR_DEFAULT = 2000;
|
|
58
|
+
var PRIORITY_PROCESSOR_STATISTIC = 5000;
|
|
59
|
+
var PRIORITY_VISUAL_LAYOUT = 1000;
|
|
60
|
+
var PRIORITY_VISUAL_PROGRESSIVE_LAYOUT = 1100;
|
|
61
|
+
var PRIORITY_VISUAL_GLOBAL = 2000;
|
|
62
|
+
var PRIORITY_VISUAL_CHART = 3000;
|
|
63
|
+
var PRIORITY_VISUAL_COMPONENT = 4000;
|
|
64
|
+
// Visual property in data. Greater than `PRIORITY_VISUAL_COMPONENT` to enable to
|
|
65
|
+
// overwrite the viusal result of component (like `visualMap`)
|
|
66
|
+
// using data item specific setting (like itemStyle.xxx on data item)
|
|
67
|
+
var PRIORITY_VISUAL_CHART_DATA_CUSTOM = 4500;
|
|
68
|
+
// Greater than `PRIORITY_VISUAL_CHART_DATA_CUSTOM` to enable to layout based on
|
|
69
|
+
// visual result like `symbolSize`.
|
|
70
|
+
var PRIORITY_VISUAL_POST_CHART_LAYOUT = 4600;
|
|
71
|
+
var PRIORITY_VISUAL_BRUSH = 5000;
|
|
72
|
+
var PRIORITY_VISUAL_ARIA = 6000;
|
|
73
|
+
var PRIORITY_VISUAL_DECAL = 7000;
|
|
74
|
+
var PRIORITY = {
|
|
75
|
+
PROCESSOR: {
|
|
76
|
+
FILTER: PRIORITY_PROCESSOR_FILTER,
|
|
77
|
+
SERIES_FILTER: PRIORITY_PROCESSOR_SERIES_FILTER,
|
|
78
|
+
STATISTIC: PRIORITY_PROCESSOR_STATISTIC
|
|
79
|
+
},
|
|
80
|
+
VISUAL: {
|
|
81
|
+
LAYOUT: PRIORITY_VISUAL_LAYOUT,
|
|
82
|
+
PROGRESSIVE_LAYOUT: PRIORITY_VISUAL_PROGRESSIVE_LAYOUT,
|
|
83
|
+
GLOBAL: PRIORITY_VISUAL_GLOBAL,
|
|
84
|
+
CHART: PRIORITY_VISUAL_CHART,
|
|
85
|
+
POST_CHART_LAYOUT: PRIORITY_VISUAL_POST_CHART_LAYOUT,
|
|
86
|
+
COMPONENT: PRIORITY_VISUAL_COMPONENT,
|
|
87
|
+
BRUSH: PRIORITY_VISUAL_BRUSH,
|
|
88
|
+
CHART_ITEM: PRIORITY_VISUAL_CHART_DATA_CUSTOM,
|
|
89
|
+
ARIA: PRIORITY_VISUAL_ARIA,
|
|
90
|
+
DECAL: PRIORITY_VISUAL_DECAL
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
// Main process have three entries: `setOption`, `dispatchAction` and `resize`,
|
|
94
|
+
// where they must not be invoked nestedly, except the only case: invoke
|
|
95
|
+
// dispatchAction with updateMethod "none" in main process.
|
|
96
|
+
// This flag is used to carry out this rule.
|
|
97
|
+
// All events will be triggered out side main process (i.e. when !this[IN_MAIN_PROCESS]).
|
|
98
|
+
var IN_MAIN_PROCESS_KEY = '__flagInMainProcess';
|
|
99
|
+
var PENDING_UPDATE = '__pendingUpdate';
|
|
100
|
+
var STATUS_NEEDS_UPDATE_KEY = '__needsUpdateStatus';
|
|
101
|
+
var ACTION_REG = /^[a-zA-Z0-9_]+$/;
|
|
102
|
+
var CONNECT_STATUS_KEY = '__connectUpdateStatus';
|
|
103
|
+
var CONNECT_STATUS_PENDING = 0;
|
|
104
|
+
var CONNECT_STATUS_UPDATING = 1;
|
|
105
|
+
var CONNECT_STATUS_UPDATED = 2;
|
|
106
|
+
function createRegisterEventWithLowercaseECharts(method) {
|
|
107
|
+
return function () {
|
|
108
|
+
var args = [];
|
|
109
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
110
|
+
args[_i] = arguments[_i];
|
|
111
|
+
}
|
|
112
|
+
if (this.isDisposed()) {
|
|
113
|
+
disposedWarning(this.id);
|
|
114
|
+
return;
|
|
115
|
+
}
|
|
116
|
+
return toLowercaseNameAndCallEventful(this, method, args);
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
function createRegisterEventWithLowercaseMessageCenter(method) {
|
|
120
|
+
return function () {
|
|
121
|
+
var args = [];
|
|
122
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
123
|
+
args[_i] = arguments[_i];
|
|
124
|
+
}
|
|
125
|
+
return toLowercaseNameAndCallEventful(this, method, args);
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
function toLowercaseNameAndCallEventful(host, method, args) {
|
|
129
|
+
// `args[0]` is event name. Event name is all lowercase.
|
|
130
|
+
args[0] = args[0] && args[0].toLowerCase();
|
|
131
|
+
return Eventful.prototype[method].apply(host, args);
|
|
132
|
+
}
|
|
133
|
+
var MessageCenter = /** @class */function (_super) {
|
|
134
|
+
__extends(MessageCenter, _super);
|
|
135
|
+
function MessageCenter() {
|
|
136
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
137
|
+
}
|
|
138
|
+
return MessageCenter;
|
|
139
|
+
}(Eventful);
|
|
140
|
+
var messageCenterProto = MessageCenter.prototype;
|
|
141
|
+
messageCenterProto.on = createRegisterEventWithLowercaseMessageCenter('on');
|
|
142
|
+
messageCenterProto.off = createRegisterEventWithLowercaseMessageCenter('off');
|
|
143
|
+
// ---------------------------------------
|
|
144
|
+
// Internal method names for class ECharts
|
|
145
|
+
// ---------------------------------------
|
|
146
|
+
var prepare;
|
|
147
|
+
var prepareView;
|
|
148
|
+
var updateDirectly;
|
|
149
|
+
var updateMethods;
|
|
150
|
+
var doConvertPixel;
|
|
151
|
+
var updateStreamModes;
|
|
152
|
+
var doDispatchAction;
|
|
153
|
+
var flushPendingActions;
|
|
154
|
+
var triggerUpdatedEvent;
|
|
155
|
+
var bindRenderedEvent;
|
|
156
|
+
var bindMouseEvent;
|
|
157
|
+
var render;
|
|
158
|
+
var renderComponents;
|
|
159
|
+
var renderSeries;
|
|
160
|
+
var createExtensionAPI;
|
|
161
|
+
var enableConnect;
|
|
162
|
+
var markStatusToUpdate;
|
|
163
|
+
var applyChangedStates;
|
|
164
|
+
var ECharts = /** @class */function (_super) {
|
|
165
|
+
__extends(ECharts, _super);
|
|
166
|
+
function ECharts(dom,
|
|
167
|
+
// Theme name or themeOption.
|
|
168
|
+
theme, opts) {
|
|
169
|
+
var _this = _super.call(this, new ECEventProcessor()) || this;
|
|
170
|
+
_this._chartsViews = [];
|
|
171
|
+
_this._chartsMap = {};
|
|
172
|
+
_this._componentsViews = [];
|
|
173
|
+
_this._componentsMap = {};
|
|
174
|
+
// Can't dispatch action during rendering procedure
|
|
175
|
+
_this._pendingActions = [];
|
|
176
|
+
opts = opts || {};
|
|
177
|
+
// Get theme by name
|
|
178
|
+
if (isString(theme)) {
|
|
179
|
+
theme = themeStorage[theme];
|
|
180
|
+
}
|
|
181
|
+
_this._dom = dom;
|
|
182
|
+
var defaultRenderer = 'canvas';
|
|
183
|
+
var defaultCoarsePointer = 'auto';
|
|
184
|
+
var defaultUseDirtyRect = false;
|
|
185
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
186
|
+
var root = /* eslint-disable-next-line */
|
|
187
|
+
env.hasGlobalWindow ? window : global;
|
|
188
|
+
if (root) {
|
|
189
|
+
defaultRenderer = retrieve2(root.__ECHARTS__DEFAULT__RENDERER__, defaultRenderer);
|
|
190
|
+
defaultCoarsePointer = retrieve2(root.__ECHARTS__DEFAULT__COARSE_POINTER, defaultCoarsePointer);
|
|
191
|
+
defaultUseDirtyRect = retrieve2(root.__ECHARTS__DEFAULT__USE_DIRTY_RECT__, defaultUseDirtyRect);
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
if (opts.ssr) {
|
|
195
|
+
registerSSRDataGetter(function (el) {
|
|
196
|
+
var ecData = getECData(el);
|
|
197
|
+
var dataIndex = ecData.dataIndex;
|
|
198
|
+
if (dataIndex == null) {
|
|
199
|
+
return;
|
|
200
|
+
}
|
|
201
|
+
var hashMap = createHashMap();
|
|
202
|
+
hashMap.set('series_index', ecData.seriesIndex);
|
|
203
|
+
hashMap.set('data_index', dataIndex);
|
|
204
|
+
ecData.ssrType && hashMap.set('ssr_type', ecData.ssrType);
|
|
205
|
+
return hashMap;
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
var zr = _this._zr = init$1(dom, {
|
|
209
|
+
renderer: opts.renderer || defaultRenderer,
|
|
210
|
+
devicePixelRatio: opts.devicePixelRatio,
|
|
211
|
+
width: opts.width,
|
|
212
|
+
height: opts.height,
|
|
213
|
+
ssr: opts.ssr,
|
|
214
|
+
useDirtyRect: retrieve2(opts.useDirtyRect, defaultUseDirtyRect),
|
|
215
|
+
useCoarsePointer: retrieve2(opts.useCoarsePointer, defaultCoarsePointer),
|
|
216
|
+
pointerSize: opts.pointerSize
|
|
217
|
+
});
|
|
218
|
+
_this._ssr = opts.ssr;
|
|
219
|
+
// Expect 60 fps.
|
|
220
|
+
_this._throttledZrFlush = throttle(bind(zr.flush, zr), 17);
|
|
221
|
+
theme = clone(theme);
|
|
222
|
+
theme && globalBackwardCompat(theme, true);
|
|
223
|
+
_this._theme = theme;
|
|
224
|
+
_this._locale = createLocaleObject(opts.locale || SYSTEM_LANG);
|
|
225
|
+
_this._coordSysMgr = new CoordinateSystemManager();
|
|
226
|
+
var api = _this._api = createExtensionAPI(_this);
|
|
227
|
+
// Sort on demand
|
|
228
|
+
function prioritySortFunc(a, b) {
|
|
229
|
+
return a.__prio - b.__prio;
|
|
230
|
+
}
|
|
231
|
+
sort(visualFuncs, prioritySortFunc);
|
|
232
|
+
sort(dataProcessorFuncs, prioritySortFunc);
|
|
233
|
+
_this._scheduler = new Scheduler(_this, api, dataProcessorFuncs, visualFuncs);
|
|
234
|
+
_this._messageCenter = new MessageCenter();
|
|
235
|
+
// Init mouse events
|
|
236
|
+
_this._initEvents();
|
|
237
|
+
// In case some people write `window.onresize = chart.resize`
|
|
238
|
+
_this.resize = bind(_this.resize, _this);
|
|
239
|
+
zr.animation.on('frame', _this._onframe, _this);
|
|
240
|
+
bindRenderedEvent(zr, _this);
|
|
241
|
+
bindMouseEvent(zr, _this);
|
|
242
|
+
// ECharts instance can be used as value.
|
|
243
|
+
setAsPrimitive(_this);
|
|
244
|
+
return _this;
|
|
245
|
+
}
|
|
246
|
+
ECharts.prototype._onframe = function () {
|
|
247
|
+
if (this._disposed) {
|
|
248
|
+
return;
|
|
249
|
+
}
|
|
250
|
+
applyChangedStates(this);
|
|
251
|
+
var scheduler = this._scheduler;
|
|
252
|
+
// Lazy update
|
|
253
|
+
if (this[PENDING_UPDATE]) {
|
|
254
|
+
var silent = this[PENDING_UPDATE].silent;
|
|
255
|
+
this[IN_MAIN_PROCESS_KEY] = true;
|
|
256
|
+
try {
|
|
257
|
+
prepare(this);
|
|
258
|
+
updateMethods.update.call(this, null, this[PENDING_UPDATE].updateParams);
|
|
259
|
+
} catch (e) {
|
|
260
|
+
this[IN_MAIN_PROCESS_KEY] = false;
|
|
261
|
+
this[PENDING_UPDATE] = null;
|
|
262
|
+
throw e;
|
|
263
|
+
}
|
|
264
|
+
// At present, in each frame, zrender performs:
|
|
265
|
+
// (1) animation step forward.
|
|
266
|
+
// (2) trigger('frame') (where this `_onframe` is called)
|
|
267
|
+
// (3) zrender flush (render).
|
|
268
|
+
// If we do nothing here, since we use `setToFinal: true`, the step (3) above
|
|
269
|
+
// will render the final state of the elements before the real animation started.
|
|
270
|
+
this._zr.flush();
|
|
271
|
+
this[IN_MAIN_PROCESS_KEY] = false;
|
|
272
|
+
this[PENDING_UPDATE] = null;
|
|
273
|
+
flushPendingActions.call(this, silent);
|
|
274
|
+
triggerUpdatedEvent.call(this, silent);
|
|
275
|
+
}
|
|
276
|
+
// Avoid do both lazy update and progress in one frame.
|
|
277
|
+
else if (scheduler.unfinished) {
|
|
278
|
+
// Stream progress.
|
|
279
|
+
var remainTime = TEST_FRAME_REMAIN_TIME;
|
|
280
|
+
var ecModel = this._model;
|
|
281
|
+
var api = this._api;
|
|
282
|
+
scheduler.unfinished = false;
|
|
283
|
+
do {
|
|
284
|
+
var startTime = +new Date();
|
|
285
|
+
scheduler.performSeriesTasks(ecModel);
|
|
286
|
+
// Currently dataProcessorFuncs do not check threshold.
|
|
287
|
+
scheduler.performDataProcessorTasks(ecModel);
|
|
288
|
+
updateStreamModes(this, ecModel);
|
|
289
|
+
// Do not update coordinate system here. Because that coord system update in
|
|
290
|
+
// each frame is not a good user experience. So we follow the rule that
|
|
291
|
+
// the extent of the coordinate system is determined in the first frame (the
|
|
292
|
+
// frame is executed immediately after task reset.
|
|
293
|
+
// this._coordSysMgr.update(ecModel, api);
|
|
294
|
+
// console.log('--- ec frame visual ---', remainTime);
|
|
295
|
+
scheduler.performVisualTasks(ecModel);
|
|
296
|
+
renderSeries(this, this._model, api, 'remain', {});
|
|
297
|
+
remainTime -= +new Date() - startTime;
|
|
298
|
+
} while (remainTime > 0 && scheduler.unfinished);
|
|
299
|
+
// Call flush explicitly for trigger finished event.
|
|
300
|
+
if (!scheduler.unfinished) {
|
|
301
|
+
this._zr.flush();
|
|
302
|
+
}
|
|
303
|
+
// Else, zr flushing be ensue within the same frame,
|
|
304
|
+
// because zr flushing is after onframe event.
|
|
305
|
+
}
|
|
306
|
+
};
|
|
307
|
+
|
|
308
|
+
ECharts.prototype.getDom = function () {
|
|
309
|
+
return this._dom;
|
|
310
|
+
};
|
|
311
|
+
ECharts.prototype.getId = function () {
|
|
312
|
+
return this.id;
|
|
313
|
+
};
|
|
314
|
+
ECharts.prototype.getZr = function () {
|
|
315
|
+
return this._zr;
|
|
316
|
+
};
|
|
317
|
+
ECharts.prototype.isSSR = function () {
|
|
318
|
+
return this._ssr;
|
|
319
|
+
};
|
|
320
|
+
/* eslint-disable-next-line */
|
|
321
|
+
ECharts.prototype.setOption = function (option, notMerge, lazyUpdate) {
|
|
322
|
+
if (this[IN_MAIN_PROCESS_KEY]) {
|
|
323
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
324
|
+
error('`setOption` should not be called during main process.');
|
|
325
|
+
}
|
|
326
|
+
return;
|
|
327
|
+
}
|
|
328
|
+
if (this._disposed) {
|
|
329
|
+
disposedWarning(this.id);
|
|
330
|
+
return;
|
|
331
|
+
}
|
|
332
|
+
var silent;
|
|
333
|
+
var replaceMerge;
|
|
334
|
+
var transitionOpt;
|
|
335
|
+
if (isObject(notMerge)) {
|
|
336
|
+
lazyUpdate = notMerge.lazyUpdate;
|
|
337
|
+
silent = notMerge.silent;
|
|
338
|
+
replaceMerge = notMerge.replaceMerge;
|
|
339
|
+
transitionOpt = notMerge.transition;
|
|
340
|
+
notMerge = notMerge.notMerge;
|
|
341
|
+
}
|
|
342
|
+
this[IN_MAIN_PROCESS_KEY] = true;
|
|
343
|
+
if (!this._model || notMerge) {
|
|
344
|
+
var optionManager = new OptionManager(this._api);
|
|
345
|
+
var theme = this._theme;
|
|
346
|
+
var ecModel = this._model = new GlobalModel();
|
|
347
|
+
ecModel.scheduler = this._scheduler;
|
|
348
|
+
ecModel.ssr = this._ssr;
|
|
349
|
+
ecModel.init(null, null, null, theme, this._locale, optionManager);
|
|
350
|
+
}
|
|
351
|
+
this._model.setOption(option, {
|
|
352
|
+
replaceMerge: replaceMerge
|
|
353
|
+
}, optionPreprocessorFuncs);
|
|
354
|
+
var updateParams = {
|
|
355
|
+
seriesTransition: transitionOpt,
|
|
356
|
+
optionChanged: true
|
|
357
|
+
};
|
|
358
|
+
if (lazyUpdate) {
|
|
359
|
+
this[PENDING_UPDATE] = {
|
|
360
|
+
silent: silent,
|
|
361
|
+
updateParams: updateParams
|
|
362
|
+
};
|
|
363
|
+
this[IN_MAIN_PROCESS_KEY] = false;
|
|
364
|
+
// `setOption(option, {lazyMode: true})` may be called when zrender has been slept.
|
|
365
|
+
// It should wake it up to make sure zrender start to render at the next frame.
|
|
366
|
+
this.getZr().wakeUp();
|
|
367
|
+
} else {
|
|
368
|
+
try {
|
|
369
|
+
prepare(this);
|
|
370
|
+
updateMethods.update.call(this, null, updateParams);
|
|
371
|
+
} catch (e) {
|
|
372
|
+
this[PENDING_UPDATE] = null;
|
|
373
|
+
this[IN_MAIN_PROCESS_KEY] = false;
|
|
374
|
+
throw e;
|
|
375
|
+
}
|
|
376
|
+
// Ensure zr refresh sychronously, and then pixel in canvas can be
|
|
377
|
+
// fetched after `setOption`.
|
|
378
|
+
if (!this._ssr) {
|
|
379
|
+
// not use flush when using ssr mode.
|
|
380
|
+
this._zr.flush();
|
|
381
|
+
}
|
|
382
|
+
this[PENDING_UPDATE] = null;
|
|
383
|
+
this[IN_MAIN_PROCESS_KEY] = false;
|
|
384
|
+
flushPendingActions.call(this, silent);
|
|
385
|
+
triggerUpdatedEvent.call(this, silent);
|
|
386
|
+
}
|
|
387
|
+
};
|
|
388
|
+
/**
|
|
389
|
+
* @deprecated
|
|
390
|
+
*/
|
|
391
|
+
ECharts.prototype.setTheme = function () {
|
|
392
|
+
deprecateLog('ECharts#setTheme() is DEPRECATED in ECharts 3.0');
|
|
393
|
+
};
|
|
394
|
+
// We don't want developers to use getModel directly.
|
|
395
|
+
ECharts.prototype.getModel = function () {
|
|
396
|
+
return this._model;
|
|
397
|
+
};
|
|
398
|
+
ECharts.prototype.getOption = function () {
|
|
399
|
+
return this._model && this._model.getOption();
|
|
400
|
+
};
|
|
401
|
+
ECharts.prototype.getWidth = function () {
|
|
402
|
+
return this._zr.getWidth();
|
|
403
|
+
};
|
|
404
|
+
ECharts.prototype.getHeight = function () {
|
|
405
|
+
return this._zr.getHeight();
|
|
406
|
+
};
|
|
407
|
+
ECharts.prototype.getDevicePixelRatio = function () {
|
|
408
|
+
return this._zr.painter.dpr
|
|
409
|
+
/* eslint-disable-next-line */ || env.hasGlobalWindow && window.devicePixelRatio || 1;
|
|
410
|
+
};
|
|
411
|
+
/**
|
|
412
|
+
* Get canvas which has all thing rendered
|
|
413
|
+
* @deprecated Use renderToCanvas instead.
|
|
414
|
+
*/
|
|
415
|
+
ECharts.prototype.getRenderedCanvas = function (opts) {
|
|
416
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
417
|
+
deprecateReplaceLog('getRenderedCanvas', 'renderToCanvas');
|
|
418
|
+
}
|
|
419
|
+
return this.renderToCanvas(opts);
|
|
420
|
+
};
|
|
421
|
+
ECharts.prototype.renderToCanvas = function (opts) {
|
|
422
|
+
opts = opts || {};
|
|
423
|
+
var painter = this._zr.painter;
|
|
424
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
425
|
+
if (painter.type !== 'canvas') {
|
|
426
|
+
throw new Error('renderToCanvas can only be used in the canvas renderer.');
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
return painter.getRenderedCanvas({
|
|
430
|
+
backgroundColor: opts.backgroundColor || this._model.get('backgroundColor'),
|
|
431
|
+
pixelRatio: opts.pixelRatio || this.getDevicePixelRatio()
|
|
432
|
+
});
|
|
433
|
+
};
|
|
434
|
+
ECharts.prototype.renderToSVGString = function (opts) {
|
|
435
|
+
opts = opts || {};
|
|
436
|
+
var painter = this._zr.painter;
|
|
437
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
438
|
+
if (painter.type !== 'svg') {
|
|
439
|
+
throw new Error('renderToSVGString can only be used in the svg renderer.');
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
return painter.renderToString({
|
|
443
|
+
useViewBox: opts.useViewBox
|
|
444
|
+
});
|
|
445
|
+
};
|
|
446
|
+
/**
|
|
447
|
+
* Get svg data url
|
|
448
|
+
*/
|
|
449
|
+
ECharts.prototype.getSvgDataURL = function () {
|
|
450
|
+
if (!env.svgSupported) {
|
|
451
|
+
return;
|
|
452
|
+
}
|
|
453
|
+
var zr = this._zr;
|
|
454
|
+
var list = zr.storage.getDisplayList();
|
|
455
|
+
// Stop animations
|
|
456
|
+
each(list, function (el) {
|
|
457
|
+
el.stopAnimation(null, true);
|
|
458
|
+
});
|
|
459
|
+
return zr.painter.toDataURL();
|
|
460
|
+
};
|
|
461
|
+
ECharts.prototype.getDataURL = function (opts) {
|
|
462
|
+
if (this._disposed) {
|
|
463
|
+
disposedWarning(this.id);
|
|
464
|
+
return;
|
|
465
|
+
}
|
|
466
|
+
opts = opts || {};
|
|
467
|
+
var excludeComponents = opts.excludeComponents;
|
|
468
|
+
var ecModel = this._model;
|
|
469
|
+
var excludesComponentViews = [];
|
|
470
|
+
var self = this;
|
|
471
|
+
each(excludeComponents, function (componentType) {
|
|
472
|
+
ecModel.eachComponent({
|
|
473
|
+
mainType: componentType
|
|
474
|
+
}, function (component) {
|
|
475
|
+
var view = self._componentsMap[component.__viewId];
|
|
476
|
+
if (!view.group.ignore) {
|
|
477
|
+
excludesComponentViews.push(view);
|
|
478
|
+
view.group.ignore = true;
|
|
479
|
+
}
|
|
480
|
+
});
|
|
481
|
+
});
|
|
482
|
+
var url = this._zr.painter.getType() === 'svg' ? this.getSvgDataURL() : this.renderToCanvas(opts).toDataURL('image/' + (opts && opts.type || 'png'));
|
|
483
|
+
each(excludesComponentViews, function (view) {
|
|
484
|
+
view.group.ignore = false;
|
|
485
|
+
});
|
|
486
|
+
return url;
|
|
487
|
+
};
|
|
488
|
+
ECharts.prototype.getConnectedDataURL = function (opts) {
|
|
489
|
+
if (this._disposed) {
|
|
490
|
+
disposedWarning(this.id);
|
|
491
|
+
return;
|
|
492
|
+
}
|
|
493
|
+
var isSvg = opts.type === 'svg';
|
|
494
|
+
var groupId = this.group;
|
|
495
|
+
var mathMin = Math.min;
|
|
496
|
+
var mathMax = Math.max;
|
|
497
|
+
var MAX_NUMBER = Infinity;
|
|
498
|
+
if (connectedGroups[groupId]) {
|
|
499
|
+
var left_1 = MAX_NUMBER;
|
|
500
|
+
var top_1 = MAX_NUMBER;
|
|
501
|
+
var right_1 = -MAX_NUMBER;
|
|
502
|
+
var bottom_1 = -MAX_NUMBER;
|
|
503
|
+
var canvasList_1 = [];
|
|
504
|
+
var dpr_1 = opts && opts.pixelRatio || this.getDevicePixelRatio();
|
|
505
|
+
each(instances, function (chart, id) {
|
|
506
|
+
if (chart.group === groupId) {
|
|
507
|
+
var canvas = isSvg ? chart.getZr().painter.getSvgDom().innerHTML : chart.renderToCanvas(clone(opts));
|
|
508
|
+
var boundingRect = chart.getDom().getBoundingClientRect();
|
|
509
|
+
left_1 = mathMin(boundingRect.left, left_1);
|
|
510
|
+
top_1 = mathMin(boundingRect.top, top_1);
|
|
511
|
+
right_1 = mathMax(boundingRect.right, right_1);
|
|
512
|
+
bottom_1 = mathMax(boundingRect.bottom, bottom_1);
|
|
513
|
+
canvasList_1.push({
|
|
514
|
+
dom: canvas,
|
|
515
|
+
left: boundingRect.left,
|
|
516
|
+
top: boundingRect.top
|
|
517
|
+
});
|
|
518
|
+
}
|
|
519
|
+
});
|
|
520
|
+
left_1 *= dpr_1;
|
|
521
|
+
top_1 *= dpr_1;
|
|
522
|
+
right_1 *= dpr_1;
|
|
523
|
+
bottom_1 *= dpr_1;
|
|
524
|
+
var width = right_1 - left_1;
|
|
525
|
+
var height = bottom_1 - top_1;
|
|
526
|
+
var targetCanvas = platformApi.createCanvas();
|
|
527
|
+
var zr_1 = init$1(targetCanvas, {
|
|
528
|
+
renderer: isSvg ? 'svg' : 'canvas'
|
|
529
|
+
});
|
|
530
|
+
zr_1.resize({
|
|
531
|
+
width: width,
|
|
532
|
+
height: height
|
|
533
|
+
});
|
|
534
|
+
if (isSvg) {
|
|
535
|
+
var content_1 = '';
|
|
536
|
+
each(canvasList_1, function (item) {
|
|
537
|
+
var x = item.left - left_1;
|
|
538
|
+
var y = item.top - top_1;
|
|
539
|
+
content_1 += '<g transform="translate(' + x + ',' + y + ')">' + item.dom + '</g>';
|
|
540
|
+
});
|
|
541
|
+
zr_1.painter.getSvgRoot().innerHTML = content_1;
|
|
542
|
+
if (opts.connectedBackgroundColor) {
|
|
543
|
+
zr_1.painter.setBackgroundColor(opts.connectedBackgroundColor);
|
|
544
|
+
}
|
|
545
|
+
zr_1.refreshImmediately();
|
|
546
|
+
return zr_1.painter.toDataURL();
|
|
547
|
+
} else {
|
|
548
|
+
// Background between the charts
|
|
549
|
+
if (opts.connectedBackgroundColor) {
|
|
550
|
+
zr_1.add(new Rect({
|
|
551
|
+
shape: {
|
|
552
|
+
x: 0,
|
|
553
|
+
y: 0,
|
|
554
|
+
width: width,
|
|
555
|
+
height: height
|
|
556
|
+
},
|
|
557
|
+
style: {
|
|
558
|
+
fill: opts.connectedBackgroundColor
|
|
559
|
+
}
|
|
560
|
+
}));
|
|
561
|
+
}
|
|
562
|
+
each(canvasList_1, function (item) {
|
|
563
|
+
var img = new ZRImage({
|
|
564
|
+
style: {
|
|
565
|
+
x: item.left * dpr_1 - left_1,
|
|
566
|
+
y: item.top * dpr_1 - top_1,
|
|
567
|
+
image: item.dom
|
|
568
|
+
}
|
|
569
|
+
});
|
|
570
|
+
zr_1.add(img);
|
|
571
|
+
});
|
|
572
|
+
zr_1.refreshImmediately();
|
|
573
|
+
return targetCanvas.toDataURL('image/' + (opts && opts.type || 'png'));
|
|
574
|
+
}
|
|
575
|
+
} else {
|
|
576
|
+
return this.getDataURL(opts);
|
|
577
|
+
}
|
|
578
|
+
};
|
|
579
|
+
ECharts.prototype.convertToPixel = function (finder, value) {
|
|
580
|
+
return doConvertPixel(this, 'convertToPixel', finder, value);
|
|
581
|
+
};
|
|
582
|
+
ECharts.prototype.convertFromPixel = function (finder, value) {
|
|
583
|
+
return doConvertPixel(this, 'convertFromPixel', finder, value);
|
|
584
|
+
};
|
|
585
|
+
/**
|
|
586
|
+
* Is the specified coordinate systems or components contain the given pixel point.
|
|
587
|
+
* @param {Array|number} value
|
|
588
|
+
* @return {boolean} result
|
|
589
|
+
*/
|
|
590
|
+
ECharts.prototype.containPixel = function (finder, value) {
|
|
591
|
+
if (this._disposed) {
|
|
592
|
+
disposedWarning(this.id);
|
|
593
|
+
return;
|
|
594
|
+
}
|
|
595
|
+
var ecModel = this._model;
|
|
596
|
+
var result;
|
|
597
|
+
var findResult = parseFinder(ecModel, finder);
|
|
598
|
+
each(findResult, function (models, key) {
|
|
599
|
+
key.indexOf('Models') >= 0 && each(models, function (model) {
|
|
600
|
+
var coordSys = model.coordinateSystem;
|
|
601
|
+
if (coordSys && coordSys.containPoint) {
|
|
602
|
+
result = result || !!coordSys.containPoint(value);
|
|
603
|
+
} else if (key === 'seriesModels') {
|
|
604
|
+
var view = this._chartsMap[model.__viewId];
|
|
605
|
+
if (view && view.containPoint) {
|
|
606
|
+
result = result || view.containPoint(value, model);
|
|
607
|
+
} else {
|
|
608
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
609
|
+
warn(key + ': ' + (view ? 'The found component do not support containPoint.' : 'No view mapping to the found component.'));
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
} else {
|
|
613
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
614
|
+
warn(key + ': containPoint is not supported');
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
}, this);
|
|
618
|
+
}, this);
|
|
619
|
+
return !!result;
|
|
620
|
+
};
|
|
621
|
+
/**
|
|
622
|
+
* Get visual from series or data.
|
|
623
|
+
* @param finder
|
|
624
|
+
* If string, e.g., 'series', means {seriesIndex: 0}.
|
|
625
|
+
* If Object, could contain some of these properties below:
|
|
626
|
+
* {
|
|
627
|
+
* seriesIndex / seriesId / seriesName,
|
|
628
|
+
* dataIndex / dataIndexInside
|
|
629
|
+
* }
|
|
630
|
+
* If dataIndex is not specified, series visual will be fetched,
|
|
631
|
+
* but not data item visual.
|
|
632
|
+
* If all of seriesIndex, seriesId, seriesName are not specified,
|
|
633
|
+
* visual will be fetched from first series.
|
|
634
|
+
* @param visualType 'color', 'symbol', 'symbolSize'
|
|
635
|
+
*/
|
|
636
|
+
ECharts.prototype.getVisual = function (finder, visualType) {
|
|
637
|
+
var ecModel = this._model;
|
|
638
|
+
var parsedFinder = parseFinder(ecModel, finder, {
|
|
639
|
+
defaultMainType: 'series'
|
|
640
|
+
});
|
|
641
|
+
var seriesModel = parsedFinder.seriesModel;
|
|
642
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
643
|
+
if (!seriesModel) {
|
|
644
|
+
warn('There is no specified series model');
|
|
645
|
+
}
|
|
646
|
+
}
|
|
647
|
+
var data = seriesModel.getData();
|
|
648
|
+
var dataIndexInside = parsedFinder.hasOwnProperty('dataIndexInside') ? parsedFinder.dataIndexInside : parsedFinder.hasOwnProperty('dataIndex') ? data.indexOfRawIndex(parsedFinder.dataIndex) : null;
|
|
649
|
+
return dataIndexInside != null ? getItemVisualFromData(data, dataIndexInside, visualType) : getVisualFromData(data, visualType);
|
|
650
|
+
};
|
|
651
|
+
/**
|
|
652
|
+
* Get view of corresponding component model
|
|
653
|
+
*/
|
|
654
|
+
ECharts.prototype.getViewOfComponentModel = function (componentModel) {
|
|
655
|
+
return this._componentsMap[componentModel.__viewId];
|
|
656
|
+
};
|
|
657
|
+
/**
|
|
658
|
+
* Get view of corresponding series model
|
|
659
|
+
*/
|
|
660
|
+
ECharts.prototype.getViewOfSeriesModel = function (seriesModel) {
|
|
661
|
+
return this._chartsMap[seriesModel.__viewId];
|
|
662
|
+
};
|
|
663
|
+
ECharts.prototype._initEvents = function () {
|
|
664
|
+
var _this = this;
|
|
665
|
+
each(MOUSE_EVENT_NAMES, function (eveName) {
|
|
666
|
+
var handler = function (e) {
|
|
667
|
+
var ecModel = _this.getModel();
|
|
668
|
+
var el = e.target;
|
|
669
|
+
var params;
|
|
670
|
+
var isGlobalOut = eveName === 'globalout';
|
|
671
|
+
// no e.target when 'globalout'.
|
|
672
|
+
if (isGlobalOut) {
|
|
673
|
+
params = {};
|
|
674
|
+
} else {
|
|
675
|
+
el && findEventDispatcher(el, function (parent) {
|
|
676
|
+
var ecData = getECData(parent);
|
|
677
|
+
if (ecData && ecData.dataIndex != null) {
|
|
678
|
+
var dataModel = ecData.dataModel || ecModel.getSeriesByIndex(ecData.seriesIndex);
|
|
679
|
+
params = dataModel && dataModel.getDataParams(ecData.dataIndex, ecData.dataType, el) || {};
|
|
680
|
+
return true;
|
|
681
|
+
}
|
|
682
|
+
// If element has custom eventData of components
|
|
683
|
+
else if (ecData.eventData) {
|
|
684
|
+
params = extend({}, ecData.eventData);
|
|
685
|
+
return true;
|
|
686
|
+
}
|
|
687
|
+
}, true);
|
|
688
|
+
}
|
|
689
|
+
// Contract: if params prepared in mouse event,
|
|
690
|
+
// these properties must be specified:
|
|
691
|
+
// {
|
|
692
|
+
// componentType: string (component main type)
|
|
693
|
+
// componentIndex: number
|
|
694
|
+
// }
|
|
695
|
+
// Otherwise event query can not work.
|
|
696
|
+
if (params) {
|
|
697
|
+
var componentType = params.componentType;
|
|
698
|
+
var componentIndex = params.componentIndex;
|
|
699
|
+
// Special handling for historic reason: when trigger by
|
|
700
|
+
// markLine/markPoint/markArea, the componentType is
|
|
701
|
+
// 'markLine'/'markPoint'/'markArea', but we should better
|
|
702
|
+
// enable them to be queried by seriesIndex, since their
|
|
703
|
+
// option is set in each series.
|
|
704
|
+
if (componentType === 'markLine' || componentType === 'markPoint' || componentType === 'markArea') {
|
|
705
|
+
componentType = 'series';
|
|
706
|
+
componentIndex = params.seriesIndex;
|
|
707
|
+
}
|
|
708
|
+
var model = componentType && componentIndex != null && ecModel.getComponent(componentType, componentIndex);
|
|
709
|
+
var view = model && _this[model.mainType === 'series' ? '_chartsMap' : '_componentsMap'][model.__viewId];
|
|
710
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
711
|
+
// `event.componentType` and `event[componentTpype + 'Index']` must not
|
|
712
|
+
// be missed, otherwise there is no way to distinguish source component.
|
|
713
|
+
// See `dataFormat.getDataParams`.
|
|
714
|
+
if (!isGlobalOut && !(model && view)) {
|
|
715
|
+
warn('model or view can not be found by params');
|
|
716
|
+
}
|
|
717
|
+
}
|
|
718
|
+
params.event = e;
|
|
719
|
+
params.type = eveName;
|
|
720
|
+
_this._$eventProcessor.eventInfo = {
|
|
721
|
+
targetEl: el,
|
|
722
|
+
packedEvent: params,
|
|
723
|
+
model: model,
|
|
724
|
+
view: view
|
|
725
|
+
};
|
|
726
|
+
_this.trigger(eveName, params);
|
|
727
|
+
}
|
|
728
|
+
};
|
|
729
|
+
// Consider that some component (like tooltip, brush, ...)
|
|
730
|
+
// register zr event handler, but user event handler might
|
|
731
|
+
// do anything, such as call `setOption` or `dispatchAction`,
|
|
732
|
+
// which probably update any of the content and probably
|
|
733
|
+
// cause problem if it is called previous other inner handlers.
|
|
734
|
+
handler.zrEventfulCallAtLast = true;
|
|
735
|
+
_this._zr.on(eveName, handler, _this);
|
|
736
|
+
});
|
|
737
|
+
each(eventActionMap, function (actionType, eventType) {
|
|
738
|
+
_this._messageCenter.on(eventType, function (event) {
|
|
739
|
+
this.trigger(eventType, event);
|
|
740
|
+
}, _this);
|
|
741
|
+
});
|
|
742
|
+
// Extra events
|
|
743
|
+
// TODO register?
|
|
744
|
+
each(['selectchanged'], function (eventType) {
|
|
745
|
+
_this._messageCenter.on(eventType, function (event) {
|
|
746
|
+
this.trigger(eventType, event);
|
|
747
|
+
}, _this);
|
|
748
|
+
});
|
|
749
|
+
handleLegacySelectEvents(this._messageCenter, this, this._api);
|
|
750
|
+
};
|
|
751
|
+
ECharts.prototype.isDisposed = function () {
|
|
752
|
+
return this._disposed;
|
|
753
|
+
};
|
|
754
|
+
ECharts.prototype.clear = function () {
|
|
755
|
+
if (this._disposed) {
|
|
756
|
+
disposedWarning(this.id);
|
|
757
|
+
return;
|
|
758
|
+
}
|
|
759
|
+
this.setOption({
|
|
760
|
+
series: []
|
|
761
|
+
}, true);
|
|
762
|
+
};
|
|
763
|
+
ECharts.prototype.dispose = function () {
|
|
764
|
+
if (this._disposed) {
|
|
765
|
+
disposedWarning(this.id);
|
|
766
|
+
return;
|
|
767
|
+
}
|
|
768
|
+
this._disposed = true;
|
|
769
|
+
var dom = this.getDom();
|
|
770
|
+
if (dom) {
|
|
771
|
+
setAttribute(this.getDom(), DOM_ATTRIBUTE_KEY, '');
|
|
772
|
+
}
|
|
773
|
+
var chart = this;
|
|
774
|
+
var api = chart._api;
|
|
775
|
+
var ecModel = chart._model;
|
|
776
|
+
each(chart._componentsViews, function (component) {
|
|
777
|
+
component.dispose(ecModel, api);
|
|
778
|
+
});
|
|
779
|
+
each(chart._chartsViews, function (chart) {
|
|
780
|
+
chart.dispose(ecModel, api);
|
|
781
|
+
});
|
|
782
|
+
// Dispose after all views disposed
|
|
783
|
+
chart._zr.dispose();
|
|
784
|
+
// Set properties to null.
|
|
785
|
+
// To reduce the memory cost in case the top code still holds this instance unexpectedly.
|
|
786
|
+
chart._dom = chart._model = chart._chartsMap = chart._componentsMap = chart._chartsViews = chart._componentsViews = chart._scheduler = chart._api = chart._zr = chart._throttledZrFlush = chart._theme = chart._coordSysMgr = chart._messageCenter = null;
|
|
787
|
+
delete instances[chart.id];
|
|
788
|
+
};
|
|
789
|
+
/**
|
|
790
|
+
* Resize the chart
|
|
791
|
+
*/
|
|
792
|
+
ECharts.prototype.resize = function (opts) {
|
|
793
|
+
if (this[IN_MAIN_PROCESS_KEY]) {
|
|
794
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
795
|
+
error('`resize` should not be called during main process.');
|
|
796
|
+
}
|
|
797
|
+
return;
|
|
798
|
+
}
|
|
799
|
+
if (this._disposed) {
|
|
800
|
+
disposedWarning(this.id);
|
|
801
|
+
return;
|
|
802
|
+
}
|
|
803
|
+
this._zr.resize(opts);
|
|
804
|
+
var ecModel = this._model;
|
|
805
|
+
// Resize loading effect
|
|
806
|
+
this._loadingFX && this._loadingFX.resize();
|
|
807
|
+
if (!ecModel) {
|
|
808
|
+
return;
|
|
809
|
+
}
|
|
810
|
+
var needPrepare = ecModel.resetOption('media');
|
|
811
|
+
var silent = opts && opts.silent;
|
|
812
|
+
// There is some real cases that:
|
|
813
|
+
// chart.setOption(option, { lazyUpdate: true });
|
|
814
|
+
// chart.resize();
|
|
815
|
+
if (this[PENDING_UPDATE]) {
|
|
816
|
+
if (silent == null) {
|
|
817
|
+
silent = this[PENDING_UPDATE].silent;
|
|
818
|
+
}
|
|
819
|
+
needPrepare = true;
|
|
820
|
+
this[PENDING_UPDATE] = null;
|
|
821
|
+
}
|
|
822
|
+
this[IN_MAIN_PROCESS_KEY] = true;
|
|
823
|
+
try {
|
|
824
|
+
needPrepare && prepare(this);
|
|
825
|
+
updateMethods.update.call(this, {
|
|
826
|
+
type: 'resize',
|
|
827
|
+
animation: extend({
|
|
828
|
+
// Disable animation
|
|
829
|
+
duration: 0
|
|
830
|
+
}, opts && opts.animation)
|
|
831
|
+
});
|
|
832
|
+
} catch (e) {
|
|
833
|
+
this[IN_MAIN_PROCESS_KEY] = false;
|
|
834
|
+
throw e;
|
|
835
|
+
}
|
|
836
|
+
this[IN_MAIN_PROCESS_KEY] = false;
|
|
837
|
+
flushPendingActions.call(this, silent);
|
|
838
|
+
triggerUpdatedEvent.call(this, silent);
|
|
839
|
+
};
|
|
840
|
+
ECharts.prototype.showLoading = function (name, cfg) {
|
|
841
|
+
if (this._disposed) {
|
|
842
|
+
disposedWarning(this.id);
|
|
843
|
+
return;
|
|
844
|
+
}
|
|
845
|
+
if (isObject(name)) {
|
|
846
|
+
cfg = name;
|
|
847
|
+
name = '';
|
|
848
|
+
}
|
|
849
|
+
name = name || 'default';
|
|
850
|
+
this.hideLoading();
|
|
851
|
+
if (!loadingEffects[name]) {
|
|
852
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
853
|
+
warn('Loading effects ' + name + ' not exists.');
|
|
854
|
+
}
|
|
855
|
+
return;
|
|
856
|
+
}
|
|
857
|
+
var el = loadingEffects[name](this._api, cfg);
|
|
858
|
+
var zr = this._zr;
|
|
859
|
+
this._loadingFX = el;
|
|
860
|
+
zr.add(el);
|
|
861
|
+
};
|
|
862
|
+
/**
|
|
863
|
+
* Hide loading effect
|
|
864
|
+
*/
|
|
865
|
+
ECharts.prototype.hideLoading = function () {
|
|
866
|
+
if (this._disposed) {
|
|
867
|
+
disposedWarning(this.id);
|
|
868
|
+
return;
|
|
869
|
+
}
|
|
870
|
+
this._loadingFX && this._zr.remove(this._loadingFX);
|
|
871
|
+
this._loadingFX = null;
|
|
872
|
+
};
|
|
873
|
+
ECharts.prototype.makeActionFromEvent = function (eventObj) {
|
|
874
|
+
var payload = extend({}, eventObj);
|
|
875
|
+
payload.type = eventActionMap[eventObj.type];
|
|
876
|
+
return payload;
|
|
877
|
+
};
|
|
878
|
+
/**
|
|
879
|
+
* @param opt If pass boolean, means opt.silent
|
|
880
|
+
* @param opt.silent Default `false`. Whether trigger events.
|
|
881
|
+
* @param opt.flush Default `undefined`.
|
|
882
|
+
* true: Flush immediately, and then pixel in canvas can be fetched
|
|
883
|
+
* immediately. Caution: it might affect performance.
|
|
884
|
+
* false: Not flush.
|
|
885
|
+
* undefined: Auto decide whether perform flush.
|
|
886
|
+
*/
|
|
887
|
+
ECharts.prototype.dispatchAction = function (payload, opt) {
|
|
888
|
+
if (this._disposed) {
|
|
889
|
+
disposedWarning(this.id);
|
|
890
|
+
return;
|
|
891
|
+
}
|
|
892
|
+
if (!isObject(opt)) {
|
|
893
|
+
opt = {
|
|
894
|
+
silent: !!opt
|
|
895
|
+
};
|
|
896
|
+
}
|
|
897
|
+
if (!actions[payload.type]) {
|
|
898
|
+
return;
|
|
899
|
+
}
|
|
900
|
+
// Avoid dispatch action before setOption. Especially in `connect`.
|
|
901
|
+
if (!this._model) {
|
|
902
|
+
return;
|
|
903
|
+
}
|
|
904
|
+
// May dispatchAction in rendering procedure
|
|
905
|
+
if (this[IN_MAIN_PROCESS_KEY]) {
|
|
906
|
+
this._pendingActions.push(payload);
|
|
907
|
+
return;
|
|
908
|
+
}
|
|
909
|
+
var silent = opt.silent;
|
|
910
|
+
doDispatchAction.call(this, payload, silent);
|
|
911
|
+
var flush = opt.flush;
|
|
912
|
+
if (flush) {
|
|
913
|
+
this._zr.flush();
|
|
914
|
+
} else if (flush !== false && env.browser.weChat) {
|
|
915
|
+
// In WeChat embedded browser, `requestAnimationFrame` and `setInterval`
|
|
916
|
+
// hang when sliding page (on touch event), which cause that zr does not
|
|
917
|
+
// refresh until user interaction finished, which is not expected.
|
|
918
|
+
// But `dispatchAction` may be called too frequently when pan on touch
|
|
919
|
+
// screen, which impacts performance if do not throttle them.
|
|
920
|
+
this._throttledZrFlush();
|
|
921
|
+
}
|
|
922
|
+
flushPendingActions.call(this, silent);
|
|
923
|
+
triggerUpdatedEvent.call(this, silent);
|
|
924
|
+
};
|
|
925
|
+
ECharts.prototype.updateLabelLayout = function () {
|
|
926
|
+
lifecycle.trigger('series:layoutlabels', this._model, this._api, {
|
|
927
|
+
// Not adding series labels.
|
|
928
|
+
// TODO
|
|
929
|
+
updatedSeries: []
|
|
930
|
+
});
|
|
931
|
+
};
|
|
932
|
+
ECharts.prototype.appendData = function (params) {
|
|
933
|
+
if (this._disposed) {
|
|
934
|
+
disposedWarning(this.id);
|
|
935
|
+
return;
|
|
936
|
+
}
|
|
937
|
+
var seriesIndex = params.seriesIndex;
|
|
938
|
+
var ecModel = this.getModel();
|
|
939
|
+
var seriesModel = ecModel.getSeriesByIndex(seriesIndex);
|
|
940
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
941
|
+
assert(params.data && seriesModel);
|
|
942
|
+
}
|
|
943
|
+
seriesModel.appendData(params);
|
|
944
|
+
// Note: `appendData` does not support that update extent of coordinate
|
|
945
|
+
// system, util some scenario require that. In the expected usage of
|
|
946
|
+
// `appendData`, the initial extent of coordinate system should better
|
|
947
|
+
// be fixed by axis `min`/`max` setting or initial data, otherwise if
|
|
948
|
+
// the extent changed while `appendData`, the location of the painted
|
|
949
|
+
// graphic elements have to be changed, which make the usage of
|
|
950
|
+
// `appendData` meaningless.
|
|
951
|
+
this._scheduler.unfinished = true;
|
|
952
|
+
this.getZr().wakeUp();
|
|
953
|
+
};
|
|
954
|
+
// A work around for no `internal` modifier in ts yet but
|
|
955
|
+
// need to strictly hide private methods to JS users.
|
|
956
|
+
ECharts.internalField = function () {
|
|
957
|
+
prepare = function (ecIns) {
|
|
958
|
+
var scheduler = ecIns._scheduler;
|
|
959
|
+
scheduler.restorePipelines(ecIns._model);
|
|
960
|
+
scheduler.prepareStageTasks();
|
|
961
|
+
prepareView(ecIns, true);
|
|
962
|
+
prepareView(ecIns, false);
|
|
963
|
+
scheduler.plan();
|
|
964
|
+
};
|
|
965
|
+
/**
|
|
966
|
+
* Prepare view instances of charts and components
|
|
967
|
+
*/
|
|
968
|
+
prepareView = function (ecIns, isComponent) {
|
|
969
|
+
var ecModel = ecIns._model;
|
|
970
|
+
var scheduler = ecIns._scheduler;
|
|
971
|
+
var viewList = isComponent ? ecIns._componentsViews : ecIns._chartsViews;
|
|
972
|
+
var viewMap = isComponent ? ecIns._componentsMap : ecIns._chartsMap;
|
|
973
|
+
var zr = ecIns._zr;
|
|
974
|
+
var api = ecIns._api;
|
|
975
|
+
for (var i = 0; i < viewList.length; i++) {
|
|
976
|
+
viewList[i].__alive = false;
|
|
977
|
+
}
|
|
978
|
+
isComponent ? ecModel.eachComponent(function (componentType, model) {
|
|
979
|
+
componentType !== 'series' && doPrepare(model);
|
|
980
|
+
}) : ecModel.eachSeries(doPrepare);
|
|
981
|
+
function doPrepare(model) {
|
|
982
|
+
// By default view will be reused if possible for the case that `setOption` with "notMerge"
|
|
983
|
+
// mode and need to enable transition animation. (Usually, when they have the same id, or
|
|
984
|
+
// especially no id but have the same type & name & index. See the `model.id` generation
|
|
985
|
+
// rule in `makeIdAndName` and `viewId` generation rule here).
|
|
986
|
+
// But in `replaceMerge` mode, this feature should be able to disabled when it is clear that
|
|
987
|
+
// the new model has nothing to do with the old model.
|
|
988
|
+
var requireNewView = model.__requireNewView;
|
|
989
|
+
// This command should not work twice.
|
|
990
|
+
model.__requireNewView = false;
|
|
991
|
+
// Consider: id same and type changed.
|
|
992
|
+
var viewId = '_ec_' + model.id + '_' + model.type;
|
|
993
|
+
var view = !requireNewView && viewMap[viewId];
|
|
994
|
+
if (!view) {
|
|
995
|
+
var classType = parseClassType(model.type);
|
|
996
|
+
var Clazz = isComponent ? ComponentView.getClass(classType.main, classType.sub) :
|
|
997
|
+
// FIXME:TS
|
|
998
|
+
// (ChartView as ChartViewConstructor).getClass('series', classType.sub)
|
|
999
|
+
// For backward compat, still support a chart type declared as only subType
|
|
1000
|
+
// like "liquidfill", but recommend "series.liquidfill"
|
|
1001
|
+
// But need a base class to make a type series.
|
|
1002
|
+
ChartView.getClass(classType.sub);
|
|
1003
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1004
|
+
assert(Clazz, classType.sub + ' does not exist.');
|
|
1005
|
+
}
|
|
1006
|
+
view = new Clazz();
|
|
1007
|
+
view.init(ecModel, api);
|
|
1008
|
+
viewMap[viewId] = view;
|
|
1009
|
+
viewList.push(view);
|
|
1010
|
+
zr.add(view.group);
|
|
1011
|
+
}
|
|
1012
|
+
model.__viewId = view.__id = viewId;
|
|
1013
|
+
view.__alive = true;
|
|
1014
|
+
view.__model = model;
|
|
1015
|
+
view.group.__ecComponentInfo = {
|
|
1016
|
+
mainType: model.mainType,
|
|
1017
|
+
index: model.componentIndex
|
|
1018
|
+
};
|
|
1019
|
+
!isComponent && scheduler.prepareView(view, model, ecModel, api);
|
|
1020
|
+
}
|
|
1021
|
+
for (var i = 0; i < viewList.length;) {
|
|
1022
|
+
var view = viewList[i];
|
|
1023
|
+
if (!view.__alive) {
|
|
1024
|
+
!isComponent && view.renderTask.dispose();
|
|
1025
|
+
zr.remove(view.group);
|
|
1026
|
+
view.dispose(ecModel, api);
|
|
1027
|
+
viewList.splice(i, 1);
|
|
1028
|
+
if (viewMap[view.__id] === view) {
|
|
1029
|
+
delete viewMap[view.__id];
|
|
1030
|
+
}
|
|
1031
|
+
view.__id = view.group.__ecComponentInfo = null;
|
|
1032
|
+
} else {
|
|
1033
|
+
i++;
|
|
1034
|
+
}
|
|
1035
|
+
}
|
|
1036
|
+
};
|
|
1037
|
+
updateDirectly = function (ecIns, method, payload, mainType, subType) {
|
|
1038
|
+
var ecModel = ecIns._model;
|
|
1039
|
+
ecModel.setUpdatePayload(payload);
|
|
1040
|
+
// broadcast
|
|
1041
|
+
if (!mainType) {
|
|
1042
|
+
// FIXME
|
|
1043
|
+
// Chart will not be update directly here, except set dirty.
|
|
1044
|
+
// But there is no such scenario now.
|
|
1045
|
+
each([].concat(ecIns._componentsViews).concat(ecIns._chartsViews), callView);
|
|
1046
|
+
return;
|
|
1047
|
+
}
|
|
1048
|
+
var query = {};
|
|
1049
|
+
query[mainType + 'Id'] = payload[mainType + 'Id'];
|
|
1050
|
+
query[mainType + 'Index'] = payload[mainType + 'Index'];
|
|
1051
|
+
query[mainType + 'Name'] = payload[mainType + 'Name'];
|
|
1052
|
+
var condition = {
|
|
1053
|
+
mainType: mainType,
|
|
1054
|
+
query: query
|
|
1055
|
+
};
|
|
1056
|
+
subType && (condition.subType = subType); // subType may be '' by parseClassType;
|
|
1057
|
+
var excludeSeriesId = payload.excludeSeriesId;
|
|
1058
|
+
var excludeSeriesIdMap;
|
|
1059
|
+
if (excludeSeriesId != null) {
|
|
1060
|
+
excludeSeriesIdMap = createHashMap();
|
|
1061
|
+
each(normalizeToArray(excludeSeriesId), function (id) {
|
|
1062
|
+
var modelId = convertOptionIdName(id, null);
|
|
1063
|
+
if (modelId != null) {
|
|
1064
|
+
excludeSeriesIdMap.set(modelId, true);
|
|
1065
|
+
}
|
|
1066
|
+
});
|
|
1067
|
+
}
|
|
1068
|
+
// If dispatchAction before setOption, do nothing.
|
|
1069
|
+
ecModel && ecModel.eachComponent(condition, function (model) {
|
|
1070
|
+
var isExcluded = excludeSeriesIdMap && excludeSeriesIdMap.get(model.id) != null;
|
|
1071
|
+
if (isExcluded) {
|
|
1072
|
+
return;
|
|
1073
|
+
}
|
|
1074
|
+
if (isHighDownPayload(payload)) {
|
|
1075
|
+
if (model instanceof SeriesModel) {
|
|
1076
|
+
if (payload.type === HIGHLIGHT_ACTION_TYPE && !payload.notBlur && !model.get(['emphasis', 'disabled'])) {
|
|
1077
|
+
blurSeriesFromHighlightPayload(model, payload, ecIns._api);
|
|
1078
|
+
}
|
|
1079
|
+
} else {
|
|
1080
|
+
var _a = findComponentHighDownDispatchers(model.mainType, model.componentIndex, payload.name, ecIns._api),
|
|
1081
|
+
focusSelf = _a.focusSelf,
|
|
1082
|
+
dispatchers = _a.dispatchers;
|
|
1083
|
+
if (payload.type === HIGHLIGHT_ACTION_TYPE && focusSelf && !payload.notBlur) {
|
|
1084
|
+
blurComponent(model.mainType, model.componentIndex, ecIns._api);
|
|
1085
|
+
}
|
|
1086
|
+
// PENDING:
|
|
1087
|
+
// Whether to put this "enter emphasis" code in `ComponentView`,
|
|
1088
|
+
// which will be the same as `ChartView` but might be not necessary
|
|
1089
|
+
// and will be far from this logic.
|
|
1090
|
+
if (dispatchers) {
|
|
1091
|
+
each(dispatchers, function (dispatcher) {
|
|
1092
|
+
payload.type === HIGHLIGHT_ACTION_TYPE ? enterEmphasis(dispatcher) : leaveEmphasis(dispatcher);
|
|
1093
|
+
});
|
|
1094
|
+
}
|
|
1095
|
+
}
|
|
1096
|
+
} else if (isSelectChangePayload(payload)) {
|
|
1097
|
+
// TODO geo
|
|
1098
|
+
if (model instanceof SeriesModel) {
|
|
1099
|
+
toggleSelectionFromPayload(model, payload, ecIns._api);
|
|
1100
|
+
updateSeriesElementSelection(model);
|
|
1101
|
+
markStatusToUpdate(ecIns);
|
|
1102
|
+
}
|
|
1103
|
+
}
|
|
1104
|
+
}, ecIns);
|
|
1105
|
+
ecModel && ecModel.eachComponent(condition, function (model) {
|
|
1106
|
+
var isExcluded = excludeSeriesIdMap && excludeSeriesIdMap.get(model.id) != null;
|
|
1107
|
+
if (isExcluded) {
|
|
1108
|
+
return;
|
|
1109
|
+
}
|
|
1110
|
+
callView(ecIns[mainType === 'series' ? '_chartsMap' : '_componentsMap'][model.__viewId]);
|
|
1111
|
+
}, ecIns);
|
|
1112
|
+
function callView(view) {
|
|
1113
|
+
view && view.__alive && view[method] && view[method](view.__model, ecModel, ecIns._api, payload);
|
|
1114
|
+
}
|
|
1115
|
+
};
|
|
1116
|
+
updateMethods = {
|
|
1117
|
+
prepareAndUpdate: function (payload) {
|
|
1118
|
+
prepare(this);
|
|
1119
|
+
updateMethods.update.call(this, payload, {
|
|
1120
|
+
// Needs to mark option changed if newOption is given.
|
|
1121
|
+
// It's from MagicType.
|
|
1122
|
+
// TODO If use a separate flag optionChanged in payload?
|
|
1123
|
+
optionChanged: payload.newOption != null
|
|
1124
|
+
});
|
|
1125
|
+
},
|
|
1126
|
+
update: function (payload, updateParams) {
|
|
1127
|
+
var ecModel = this._model;
|
|
1128
|
+
var api = this._api;
|
|
1129
|
+
var zr = this._zr;
|
|
1130
|
+
var coordSysMgr = this._coordSysMgr;
|
|
1131
|
+
var scheduler = this._scheduler;
|
|
1132
|
+
// update before setOption
|
|
1133
|
+
if (!ecModel) {
|
|
1134
|
+
return;
|
|
1135
|
+
}
|
|
1136
|
+
ecModel.setUpdatePayload(payload);
|
|
1137
|
+
scheduler.restoreData(ecModel, payload);
|
|
1138
|
+
scheduler.performSeriesTasks(ecModel);
|
|
1139
|
+
// TODO
|
|
1140
|
+
// Save total ecModel here for undo/redo (after restoring data and before processing data).
|
|
1141
|
+
// Undo (restoration of total ecModel) can be carried out in 'action' or outside API call.
|
|
1142
|
+
// Create new coordinate system each update
|
|
1143
|
+
// In LineView may save the old coordinate system and use it to get the original point.
|
|
1144
|
+
coordSysMgr.create(ecModel, api);
|
|
1145
|
+
scheduler.performDataProcessorTasks(ecModel, payload);
|
|
1146
|
+
// Current stream render is not supported in data process. So we can update
|
|
1147
|
+
// stream modes after data processing, where the filtered data is used to
|
|
1148
|
+
// determine whether to use progressive rendering.
|
|
1149
|
+
updateStreamModes(this, ecModel);
|
|
1150
|
+
// We update stream modes before coordinate system updated, then the modes info
|
|
1151
|
+
// can be fetched when coord sys updating (consider the barGrid extent fix). But
|
|
1152
|
+
// the drawback is the full coord info can not be fetched. Fortunately this full
|
|
1153
|
+
// coord is not required in stream mode updater currently.
|
|
1154
|
+
coordSysMgr.update(ecModel, api);
|
|
1155
|
+
clearColorPalette(ecModel);
|
|
1156
|
+
scheduler.performVisualTasks(ecModel, payload);
|
|
1157
|
+
render(this, ecModel, api, payload, updateParams);
|
|
1158
|
+
// Set background
|
|
1159
|
+
var backgroundColor = ecModel.get('backgroundColor') || 'transparent';
|
|
1160
|
+
var darkMode = ecModel.get('darkMode');
|
|
1161
|
+
zr.setBackgroundColor(backgroundColor);
|
|
1162
|
+
// Force set dark mode.
|
|
1163
|
+
if (darkMode != null && darkMode !== 'auto') {
|
|
1164
|
+
zr.setDarkMode(darkMode);
|
|
1165
|
+
}
|
|
1166
|
+
lifecycle.trigger('afterupdate', ecModel, api);
|
|
1167
|
+
},
|
|
1168
|
+
updateTransform: function (payload) {
|
|
1169
|
+
var _this = this;
|
|
1170
|
+
var ecModel = this._model;
|
|
1171
|
+
var api = this._api;
|
|
1172
|
+
// update before setOption
|
|
1173
|
+
if (!ecModel) {
|
|
1174
|
+
return;
|
|
1175
|
+
}
|
|
1176
|
+
ecModel.setUpdatePayload(payload);
|
|
1177
|
+
// ChartView.markUpdateMethod(payload, 'updateTransform');
|
|
1178
|
+
var componentDirtyList = [];
|
|
1179
|
+
ecModel.eachComponent(function (componentType, componentModel) {
|
|
1180
|
+
if (componentType === 'series') {
|
|
1181
|
+
return;
|
|
1182
|
+
}
|
|
1183
|
+
var componentView = _this.getViewOfComponentModel(componentModel);
|
|
1184
|
+
if (componentView && componentView.__alive) {
|
|
1185
|
+
if (componentView.updateTransform) {
|
|
1186
|
+
var result = componentView.updateTransform(componentModel, ecModel, api, payload);
|
|
1187
|
+
result && result.update && componentDirtyList.push(componentView);
|
|
1188
|
+
} else {
|
|
1189
|
+
componentDirtyList.push(componentView);
|
|
1190
|
+
}
|
|
1191
|
+
}
|
|
1192
|
+
});
|
|
1193
|
+
var seriesDirtyMap = createHashMap();
|
|
1194
|
+
ecModel.eachSeries(function (seriesModel) {
|
|
1195
|
+
var chartView = _this._chartsMap[seriesModel.__viewId];
|
|
1196
|
+
if (chartView.updateTransform) {
|
|
1197
|
+
var result = chartView.updateTransform(seriesModel, ecModel, api, payload);
|
|
1198
|
+
result && result.update && seriesDirtyMap.set(seriesModel.uid, 1);
|
|
1199
|
+
} else {
|
|
1200
|
+
seriesDirtyMap.set(seriesModel.uid, 1);
|
|
1201
|
+
}
|
|
1202
|
+
});
|
|
1203
|
+
clearColorPalette(ecModel);
|
|
1204
|
+
// Keep pipe to the exist pipeline because it depends on the render task of the full pipeline.
|
|
1205
|
+
// this._scheduler.performVisualTasks(ecModel, payload, 'layout', true);
|
|
1206
|
+
this._scheduler.performVisualTasks(ecModel, payload, {
|
|
1207
|
+
setDirty: true,
|
|
1208
|
+
dirtyMap: seriesDirtyMap
|
|
1209
|
+
});
|
|
1210
|
+
// Currently, not call render of components. Geo render cost a lot.
|
|
1211
|
+
// renderComponents(ecIns, ecModel, api, payload, componentDirtyList);
|
|
1212
|
+
renderSeries(this, ecModel, api, payload, {}, seriesDirtyMap);
|
|
1213
|
+
lifecycle.trigger('afterupdate', ecModel, api);
|
|
1214
|
+
},
|
|
1215
|
+
updateView: function (payload) {
|
|
1216
|
+
var ecModel = this._model;
|
|
1217
|
+
// update before setOption
|
|
1218
|
+
if (!ecModel) {
|
|
1219
|
+
return;
|
|
1220
|
+
}
|
|
1221
|
+
ecModel.setUpdatePayload(payload);
|
|
1222
|
+
ChartView.markUpdateMethod(payload, 'updateView');
|
|
1223
|
+
clearColorPalette(ecModel);
|
|
1224
|
+
// Keep pipe to the exist pipeline because it depends on the render task of the full pipeline.
|
|
1225
|
+
this._scheduler.performVisualTasks(ecModel, payload, {
|
|
1226
|
+
setDirty: true
|
|
1227
|
+
});
|
|
1228
|
+
render(this, ecModel, this._api, payload, {});
|
|
1229
|
+
lifecycle.trigger('afterupdate', ecModel, this._api);
|
|
1230
|
+
},
|
|
1231
|
+
updateVisual: function (payload) {
|
|
1232
|
+
// updateMethods.update.call(this, payload);
|
|
1233
|
+
var _this = this;
|
|
1234
|
+
var ecModel = this._model;
|
|
1235
|
+
// update before setOption
|
|
1236
|
+
if (!ecModel) {
|
|
1237
|
+
return;
|
|
1238
|
+
}
|
|
1239
|
+
ecModel.setUpdatePayload(payload);
|
|
1240
|
+
// clear all visual
|
|
1241
|
+
ecModel.eachSeries(function (seriesModel) {
|
|
1242
|
+
seriesModel.getData().clearAllVisual();
|
|
1243
|
+
});
|
|
1244
|
+
// Perform visual
|
|
1245
|
+
ChartView.markUpdateMethod(payload, 'updateVisual');
|
|
1246
|
+
clearColorPalette(ecModel);
|
|
1247
|
+
// Keep pipe to the exist pipeline because it depends on the render task of the full pipeline.
|
|
1248
|
+
this._scheduler.performVisualTasks(ecModel, payload, {
|
|
1249
|
+
visualType: 'visual',
|
|
1250
|
+
setDirty: true
|
|
1251
|
+
});
|
|
1252
|
+
ecModel.eachComponent(function (componentType, componentModel) {
|
|
1253
|
+
if (componentType !== 'series') {
|
|
1254
|
+
var componentView = _this.getViewOfComponentModel(componentModel);
|
|
1255
|
+
componentView && componentView.__alive && componentView.updateVisual(componentModel, ecModel, _this._api, payload);
|
|
1256
|
+
}
|
|
1257
|
+
});
|
|
1258
|
+
ecModel.eachSeries(function (seriesModel) {
|
|
1259
|
+
var chartView = _this._chartsMap[seriesModel.__viewId];
|
|
1260
|
+
chartView.updateVisual(seriesModel, ecModel, _this._api, payload);
|
|
1261
|
+
});
|
|
1262
|
+
lifecycle.trigger('afterupdate', ecModel, this._api);
|
|
1263
|
+
},
|
|
1264
|
+
updateLayout: function (payload) {
|
|
1265
|
+
updateMethods.update.call(this, payload);
|
|
1266
|
+
}
|
|
1267
|
+
};
|
|
1268
|
+
doConvertPixel = function (ecIns, methodName, finder, value) {
|
|
1269
|
+
if (ecIns._disposed) {
|
|
1270
|
+
disposedWarning(ecIns.id);
|
|
1271
|
+
return;
|
|
1272
|
+
}
|
|
1273
|
+
var ecModel = ecIns._model;
|
|
1274
|
+
var coordSysList = ecIns._coordSysMgr.getCoordinateSystems();
|
|
1275
|
+
var result;
|
|
1276
|
+
var parsedFinder = parseFinder(ecModel, finder);
|
|
1277
|
+
for (var i = 0; i < coordSysList.length; i++) {
|
|
1278
|
+
var coordSys = coordSysList[i];
|
|
1279
|
+
if (coordSys[methodName] && (result = coordSys[methodName](ecModel, parsedFinder, value)) != null) {
|
|
1280
|
+
return result;
|
|
1281
|
+
}
|
|
1282
|
+
}
|
|
1283
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1284
|
+
warn('No coordinate system that supports ' + methodName + ' found by the given finder.');
|
|
1285
|
+
}
|
|
1286
|
+
};
|
|
1287
|
+
updateStreamModes = function (ecIns, ecModel) {
|
|
1288
|
+
var chartsMap = ecIns._chartsMap;
|
|
1289
|
+
var scheduler = ecIns._scheduler;
|
|
1290
|
+
ecModel.eachSeries(function (seriesModel) {
|
|
1291
|
+
scheduler.updateStreamModes(seriesModel, chartsMap[seriesModel.__viewId]);
|
|
1292
|
+
});
|
|
1293
|
+
};
|
|
1294
|
+
doDispatchAction = function (payload, silent) {
|
|
1295
|
+
var _this = this;
|
|
1296
|
+
var ecModel = this.getModel();
|
|
1297
|
+
var payloadType = payload.type;
|
|
1298
|
+
var escapeConnect = payload.escapeConnect;
|
|
1299
|
+
var actionWrap = actions[payloadType];
|
|
1300
|
+
var actionInfo = actionWrap.actionInfo;
|
|
1301
|
+
var cptTypeTmp = (actionInfo.update || 'update').split(':');
|
|
1302
|
+
var updateMethod = cptTypeTmp.pop();
|
|
1303
|
+
var cptType = cptTypeTmp[0] != null && parseClassType(cptTypeTmp[0]);
|
|
1304
|
+
this[IN_MAIN_PROCESS_KEY] = true;
|
|
1305
|
+
var payloads = [payload];
|
|
1306
|
+
var batched = false;
|
|
1307
|
+
// Batch action
|
|
1308
|
+
if (payload.batch) {
|
|
1309
|
+
batched = true;
|
|
1310
|
+
payloads = map(payload.batch, function (item) {
|
|
1311
|
+
item = defaults(extend({}, item), payload);
|
|
1312
|
+
item.batch = null;
|
|
1313
|
+
return item;
|
|
1314
|
+
});
|
|
1315
|
+
}
|
|
1316
|
+
var eventObjBatch = [];
|
|
1317
|
+
var eventObj;
|
|
1318
|
+
var isSelectChange = isSelectChangePayload(payload);
|
|
1319
|
+
var isHighDown = isHighDownPayload(payload);
|
|
1320
|
+
// Only leave blur once if there are multiple batches.
|
|
1321
|
+
if (isHighDown) {
|
|
1322
|
+
allLeaveBlur(this._api);
|
|
1323
|
+
}
|
|
1324
|
+
each(payloads, function (batchItem) {
|
|
1325
|
+
// Action can specify the event by return it.
|
|
1326
|
+
eventObj = actionWrap.action(batchItem, _this._model, _this._api);
|
|
1327
|
+
// Emit event outside
|
|
1328
|
+
eventObj = eventObj || extend({}, batchItem);
|
|
1329
|
+
// Convert type to eventType
|
|
1330
|
+
eventObj.type = actionInfo.event || eventObj.type;
|
|
1331
|
+
eventObjBatch.push(eventObj);
|
|
1332
|
+
// light update does not perform data process, layout and visual.
|
|
1333
|
+
if (isHighDown) {
|
|
1334
|
+
var _a = preParseFinder(payload),
|
|
1335
|
+
queryOptionMap = _a.queryOptionMap,
|
|
1336
|
+
mainTypeSpecified = _a.mainTypeSpecified;
|
|
1337
|
+
var componentMainType = mainTypeSpecified ? queryOptionMap.keys()[0] : 'series';
|
|
1338
|
+
updateDirectly(_this, updateMethod, batchItem, componentMainType);
|
|
1339
|
+
markStatusToUpdate(_this);
|
|
1340
|
+
} else if (isSelectChange) {
|
|
1341
|
+
// At present `dispatchAction({ type: 'select', ... })` is not supported on components.
|
|
1342
|
+
// geo still use 'geoselect'.
|
|
1343
|
+
updateDirectly(_this, updateMethod, batchItem, 'series');
|
|
1344
|
+
markStatusToUpdate(_this);
|
|
1345
|
+
} else if (cptType) {
|
|
1346
|
+
updateDirectly(_this, updateMethod, batchItem, cptType.main, cptType.sub);
|
|
1347
|
+
}
|
|
1348
|
+
});
|
|
1349
|
+
if (updateMethod !== 'none' && !isHighDown && !isSelectChange && !cptType) {
|
|
1350
|
+
try {
|
|
1351
|
+
// Still dirty
|
|
1352
|
+
if (this[PENDING_UPDATE]) {
|
|
1353
|
+
prepare(this);
|
|
1354
|
+
updateMethods.update.call(this, payload);
|
|
1355
|
+
this[PENDING_UPDATE] = null;
|
|
1356
|
+
} else {
|
|
1357
|
+
updateMethods[updateMethod].call(this, payload);
|
|
1358
|
+
}
|
|
1359
|
+
} catch (e) {
|
|
1360
|
+
this[IN_MAIN_PROCESS_KEY] = false;
|
|
1361
|
+
throw e;
|
|
1362
|
+
}
|
|
1363
|
+
}
|
|
1364
|
+
// Follow the rule of action batch
|
|
1365
|
+
if (batched) {
|
|
1366
|
+
eventObj = {
|
|
1367
|
+
type: actionInfo.event || payloadType,
|
|
1368
|
+
escapeConnect: escapeConnect,
|
|
1369
|
+
batch: eventObjBatch
|
|
1370
|
+
};
|
|
1371
|
+
} else {
|
|
1372
|
+
eventObj = eventObjBatch[0];
|
|
1373
|
+
}
|
|
1374
|
+
this[IN_MAIN_PROCESS_KEY] = false;
|
|
1375
|
+
if (!silent) {
|
|
1376
|
+
var messageCenter = this._messageCenter;
|
|
1377
|
+
messageCenter.trigger(eventObj.type, eventObj);
|
|
1378
|
+
// Extra triggered 'selectchanged' event
|
|
1379
|
+
if (isSelectChange) {
|
|
1380
|
+
var newObj = {
|
|
1381
|
+
type: 'selectchanged',
|
|
1382
|
+
escapeConnect: escapeConnect,
|
|
1383
|
+
selected: getAllSelectedIndices(ecModel),
|
|
1384
|
+
isFromClick: payload.isFromClick || false,
|
|
1385
|
+
fromAction: payload.type,
|
|
1386
|
+
fromActionPayload: payload
|
|
1387
|
+
};
|
|
1388
|
+
messageCenter.trigger(newObj.type, newObj);
|
|
1389
|
+
}
|
|
1390
|
+
}
|
|
1391
|
+
};
|
|
1392
|
+
flushPendingActions = function (silent) {
|
|
1393
|
+
var pendingActions = this._pendingActions;
|
|
1394
|
+
while (pendingActions.length) {
|
|
1395
|
+
var payload = pendingActions.shift();
|
|
1396
|
+
doDispatchAction.call(this, payload, silent);
|
|
1397
|
+
}
|
|
1398
|
+
};
|
|
1399
|
+
triggerUpdatedEvent = function (silent) {
|
|
1400
|
+
!silent && this.trigger('updated');
|
|
1401
|
+
};
|
|
1402
|
+
/**
|
|
1403
|
+
* Event `rendered` is triggered when zr
|
|
1404
|
+
* rendered. It is useful for realtime
|
|
1405
|
+
* snapshot (reflect animation).
|
|
1406
|
+
*
|
|
1407
|
+
* Event `finished` is triggered when:
|
|
1408
|
+
* (1) zrender rendering finished.
|
|
1409
|
+
* (2) initial animation finished.
|
|
1410
|
+
* (3) progressive rendering finished.
|
|
1411
|
+
* (4) no pending action.
|
|
1412
|
+
* (5) no delayed setOption needs to be processed.
|
|
1413
|
+
*/
|
|
1414
|
+
bindRenderedEvent = function (zr, ecIns) {
|
|
1415
|
+
zr.on('rendered', function (params) {
|
|
1416
|
+
ecIns.trigger('rendered', params);
|
|
1417
|
+
// The `finished` event should not be triggered repeatedly,
|
|
1418
|
+
// so it should only be triggered when rendering indeed happens
|
|
1419
|
+
// in zrender. (Consider the case that dipatchAction is keep
|
|
1420
|
+
// triggering when mouse move).
|
|
1421
|
+
if (
|
|
1422
|
+
// Although zr is dirty if initial animation is not finished
|
|
1423
|
+
// and this checking is called on frame, we also check
|
|
1424
|
+
// animation finished for robustness.
|
|
1425
|
+
zr.animation.isFinished() && !ecIns[PENDING_UPDATE] && !ecIns._scheduler.unfinished && !ecIns._pendingActions.length) {
|
|
1426
|
+
ecIns.trigger('finished');
|
|
1427
|
+
}
|
|
1428
|
+
});
|
|
1429
|
+
};
|
|
1430
|
+
bindMouseEvent = function (zr, ecIns) {
|
|
1431
|
+
zr.on('mouseover', function (e) {
|
|
1432
|
+
var el = e.target;
|
|
1433
|
+
var dispatcher = findEventDispatcher(el, isHighDownDispatcher);
|
|
1434
|
+
if (dispatcher) {
|
|
1435
|
+
handleGlobalMouseOverForHighDown(dispatcher, e, ecIns._api);
|
|
1436
|
+
markStatusToUpdate(ecIns);
|
|
1437
|
+
}
|
|
1438
|
+
}).on('mouseout', function (e) {
|
|
1439
|
+
var el = e.target;
|
|
1440
|
+
var dispatcher = findEventDispatcher(el, isHighDownDispatcher);
|
|
1441
|
+
if (dispatcher) {
|
|
1442
|
+
handleGlobalMouseOutForHighDown(dispatcher, e, ecIns._api);
|
|
1443
|
+
markStatusToUpdate(ecIns);
|
|
1444
|
+
}
|
|
1445
|
+
}).on('click', function (e) {
|
|
1446
|
+
var el = e.target;
|
|
1447
|
+
var dispatcher = findEventDispatcher(el, function (target) {
|
|
1448
|
+
return getECData(target).dataIndex != null;
|
|
1449
|
+
}, true);
|
|
1450
|
+
if (dispatcher) {
|
|
1451
|
+
var actionType = dispatcher.selected ? 'unselect' : 'select';
|
|
1452
|
+
var ecData = getECData(dispatcher);
|
|
1453
|
+
ecIns._api.dispatchAction({
|
|
1454
|
+
type: actionType,
|
|
1455
|
+
dataType: ecData.dataType,
|
|
1456
|
+
dataIndexInside: ecData.dataIndex,
|
|
1457
|
+
seriesIndex: ecData.seriesIndex,
|
|
1458
|
+
isFromClick: true
|
|
1459
|
+
});
|
|
1460
|
+
}
|
|
1461
|
+
});
|
|
1462
|
+
};
|
|
1463
|
+
function clearColorPalette(ecModel) {
|
|
1464
|
+
ecModel.clearColorPalette();
|
|
1465
|
+
ecModel.eachSeries(function (seriesModel) {
|
|
1466
|
+
seriesModel.clearColorPalette();
|
|
1467
|
+
});
|
|
1468
|
+
}
|
|
1469
|
+
// Allocate zlevels for series and components
|
|
1470
|
+
function allocateZlevels(ecModel) {
|
|
1471
|
+
var componentZLevels = [];
|
|
1472
|
+
var seriesZLevels = [];
|
|
1473
|
+
var hasSeparateZLevel = false;
|
|
1474
|
+
ecModel.eachComponent(function (componentType, componentModel) {
|
|
1475
|
+
var zlevel = componentModel.get('zlevel') || 0;
|
|
1476
|
+
var z = componentModel.get('z') || 0;
|
|
1477
|
+
var zlevelKey = componentModel.getZLevelKey();
|
|
1478
|
+
hasSeparateZLevel = hasSeparateZLevel || !!zlevelKey;
|
|
1479
|
+
(componentType === 'series' ? seriesZLevels : componentZLevels).push({
|
|
1480
|
+
zlevel: zlevel,
|
|
1481
|
+
z: z,
|
|
1482
|
+
idx: componentModel.componentIndex,
|
|
1483
|
+
type: componentType,
|
|
1484
|
+
key: zlevelKey
|
|
1485
|
+
});
|
|
1486
|
+
});
|
|
1487
|
+
if (hasSeparateZLevel) {
|
|
1488
|
+
// Series after component
|
|
1489
|
+
var zLevels = componentZLevels.concat(seriesZLevels);
|
|
1490
|
+
var lastSeriesZLevel_1;
|
|
1491
|
+
var lastSeriesKey_1;
|
|
1492
|
+
sort(zLevels, function (a, b) {
|
|
1493
|
+
if (a.zlevel === b.zlevel) {
|
|
1494
|
+
return a.z - b.z;
|
|
1495
|
+
}
|
|
1496
|
+
return a.zlevel - b.zlevel;
|
|
1497
|
+
});
|
|
1498
|
+
each(zLevels, function (item) {
|
|
1499
|
+
var componentModel = ecModel.getComponent(item.type, item.idx);
|
|
1500
|
+
var zlevel = item.zlevel;
|
|
1501
|
+
var key = item.key;
|
|
1502
|
+
if (lastSeriesZLevel_1 != null) {
|
|
1503
|
+
zlevel = Math.max(lastSeriesZLevel_1, zlevel);
|
|
1504
|
+
}
|
|
1505
|
+
if (key) {
|
|
1506
|
+
if (zlevel === lastSeriesZLevel_1 && key !== lastSeriesKey_1) {
|
|
1507
|
+
zlevel++;
|
|
1508
|
+
}
|
|
1509
|
+
lastSeriesKey_1 = key;
|
|
1510
|
+
} else if (lastSeriesKey_1) {
|
|
1511
|
+
if (zlevel === lastSeriesZLevel_1) {
|
|
1512
|
+
zlevel++;
|
|
1513
|
+
}
|
|
1514
|
+
lastSeriesKey_1 = '';
|
|
1515
|
+
}
|
|
1516
|
+
lastSeriesZLevel_1 = zlevel;
|
|
1517
|
+
componentModel.setZLevel(zlevel);
|
|
1518
|
+
});
|
|
1519
|
+
}
|
|
1520
|
+
}
|
|
1521
|
+
render = function (ecIns, ecModel, api, payload, updateParams) {
|
|
1522
|
+
allocateZlevels(ecModel);
|
|
1523
|
+
renderComponents(ecIns, ecModel, api, payload, updateParams);
|
|
1524
|
+
each(ecIns._chartsViews, function (chart) {
|
|
1525
|
+
chart.__alive = false;
|
|
1526
|
+
});
|
|
1527
|
+
renderSeries(ecIns, ecModel, api, payload, updateParams);
|
|
1528
|
+
// Remove groups of unrendered charts
|
|
1529
|
+
each(ecIns._chartsViews, function (chart) {
|
|
1530
|
+
if (!chart.__alive) {
|
|
1531
|
+
chart.remove(ecModel, api);
|
|
1532
|
+
}
|
|
1533
|
+
});
|
|
1534
|
+
};
|
|
1535
|
+
renderComponents = function (ecIns, ecModel, api, payload, updateParams, dirtyList) {
|
|
1536
|
+
each(dirtyList || ecIns._componentsViews, function (componentView) {
|
|
1537
|
+
var componentModel = componentView.__model;
|
|
1538
|
+
clearStates(componentModel, componentView);
|
|
1539
|
+
componentView.render(componentModel, ecModel, api, payload);
|
|
1540
|
+
updateZ(componentModel, componentView);
|
|
1541
|
+
updateStates(componentModel, componentView);
|
|
1542
|
+
});
|
|
1543
|
+
};
|
|
1544
|
+
/**
|
|
1545
|
+
* Render each chart and component
|
|
1546
|
+
*/
|
|
1547
|
+
renderSeries = function (ecIns, ecModel, api, payload, updateParams, dirtyMap) {
|
|
1548
|
+
// Render all charts
|
|
1549
|
+
var scheduler = ecIns._scheduler;
|
|
1550
|
+
updateParams = extend(updateParams || {}, {
|
|
1551
|
+
updatedSeries: ecModel.getSeries()
|
|
1552
|
+
});
|
|
1553
|
+
// TODO progressive?
|
|
1554
|
+
lifecycle.trigger('series:beforeupdate', ecModel, api, updateParams);
|
|
1555
|
+
var unfinished = false;
|
|
1556
|
+
ecModel.eachSeries(function (seriesModel) {
|
|
1557
|
+
var chartView = ecIns._chartsMap[seriesModel.__viewId];
|
|
1558
|
+
chartView.__alive = true;
|
|
1559
|
+
var renderTask = chartView.renderTask;
|
|
1560
|
+
scheduler.updatePayload(renderTask, payload);
|
|
1561
|
+
// TODO states on marker.
|
|
1562
|
+
clearStates(seriesModel, chartView);
|
|
1563
|
+
if (dirtyMap && dirtyMap.get(seriesModel.uid)) {
|
|
1564
|
+
renderTask.dirty();
|
|
1565
|
+
}
|
|
1566
|
+
if (renderTask.perform(scheduler.getPerformArgs(renderTask))) {
|
|
1567
|
+
unfinished = true;
|
|
1568
|
+
}
|
|
1569
|
+
chartView.group.silent = !!seriesModel.get('silent');
|
|
1570
|
+
// Should not call markRedraw on group, because it will disable zrender
|
|
1571
|
+
// incremental render (always render from the __startIndex each frame)
|
|
1572
|
+
// chartView.group.markRedraw();
|
|
1573
|
+
updateBlend(seriesModel, chartView);
|
|
1574
|
+
updateSeriesElementSelection(seriesModel);
|
|
1575
|
+
});
|
|
1576
|
+
scheduler.unfinished = unfinished || scheduler.unfinished;
|
|
1577
|
+
lifecycle.trigger('series:layoutlabels', ecModel, api, updateParams);
|
|
1578
|
+
// transition after label is layouted.
|
|
1579
|
+
lifecycle.trigger('series:transition', ecModel, api, updateParams);
|
|
1580
|
+
ecModel.eachSeries(function (seriesModel) {
|
|
1581
|
+
var chartView = ecIns._chartsMap[seriesModel.__viewId];
|
|
1582
|
+
// Update Z after labels updated. Before applying states.
|
|
1583
|
+
updateZ(seriesModel, chartView);
|
|
1584
|
+
// NOTE: Update states after label is updated.
|
|
1585
|
+
// label should be in normal status when layouting.
|
|
1586
|
+
updateStates(seriesModel, chartView);
|
|
1587
|
+
});
|
|
1588
|
+
// If use hover layer
|
|
1589
|
+
updateHoverLayerStatus(ecIns, ecModel);
|
|
1590
|
+
lifecycle.trigger('series:afterupdate', ecModel, api, updateParams);
|
|
1591
|
+
};
|
|
1592
|
+
markStatusToUpdate = function (ecIns) {
|
|
1593
|
+
ecIns[STATUS_NEEDS_UPDATE_KEY] = true;
|
|
1594
|
+
// Wake up zrender if it's sleep. Let it update states in the next frame.
|
|
1595
|
+
ecIns.getZr().wakeUp();
|
|
1596
|
+
};
|
|
1597
|
+
applyChangedStates = function (ecIns) {
|
|
1598
|
+
if (!ecIns[STATUS_NEEDS_UPDATE_KEY]) {
|
|
1599
|
+
return;
|
|
1600
|
+
}
|
|
1601
|
+
ecIns.getZr().storage.traverse(function (el) {
|
|
1602
|
+
// Not applied on removed elements, it may still in fading.
|
|
1603
|
+
if (isElementRemoved(el)) {
|
|
1604
|
+
return;
|
|
1605
|
+
}
|
|
1606
|
+
applyElementStates(el);
|
|
1607
|
+
});
|
|
1608
|
+
ecIns[STATUS_NEEDS_UPDATE_KEY] = false;
|
|
1609
|
+
};
|
|
1610
|
+
function applyElementStates(el) {
|
|
1611
|
+
var newStates = [];
|
|
1612
|
+
var oldStates = el.currentStates;
|
|
1613
|
+
// Keep other states.
|
|
1614
|
+
for (var i = 0; i < oldStates.length; i++) {
|
|
1615
|
+
var stateName = oldStates[i];
|
|
1616
|
+
if (!(stateName === 'emphasis' || stateName === 'blur' || stateName === 'select')) {
|
|
1617
|
+
newStates.push(stateName);
|
|
1618
|
+
}
|
|
1619
|
+
}
|
|
1620
|
+
// Only use states when it's exists.
|
|
1621
|
+
if (el.selected && el.states.select) {
|
|
1622
|
+
newStates.push('select');
|
|
1623
|
+
}
|
|
1624
|
+
if (el.hoverState === HOVER_STATE_EMPHASIS && el.states.emphasis) {
|
|
1625
|
+
newStates.push('emphasis');
|
|
1626
|
+
} else if (el.hoverState === HOVER_STATE_BLUR && el.states.blur) {
|
|
1627
|
+
newStates.push('blur');
|
|
1628
|
+
}
|
|
1629
|
+
el.useStates(newStates);
|
|
1630
|
+
}
|
|
1631
|
+
function updateHoverLayerStatus(ecIns, ecModel) {
|
|
1632
|
+
var zr = ecIns._zr;
|
|
1633
|
+
var storage = zr.storage;
|
|
1634
|
+
var elCount = 0;
|
|
1635
|
+
storage.traverse(function (el) {
|
|
1636
|
+
if (!el.isGroup) {
|
|
1637
|
+
elCount++;
|
|
1638
|
+
}
|
|
1639
|
+
});
|
|
1640
|
+
if (elCount > ecModel.get('hoverLayerThreshold') && !env.node && !env.worker) {
|
|
1641
|
+
ecModel.eachSeries(function (seriesModel) {
|
|
1642
|
+
if (seriesModel.preventUsingHoverLayer) {
|
|
1643
|
+
return;
|
|
1644
|
+
}
|
|
1645
|
+
var chartView = ecIns._chartsMap[seriesModel.__viewId];
|
|
1646
|
+
if (chartView.__alive) {
|
|
1647
|
+
chartView.eachRendered(function (el) {
|
|
1648
|
+
if (el.states.emphasis) {
|
|
1649
|
+
el.states.emphasis.hoverLayer = true;
|
|
1650
|
+
}
|
|
1651
|
+
});
|
|
1652
|
+
}
|
|
1653
|
+
});
|
|
1654
|
+
}
|
|
1655
|
+
}
|
|
1656
|
+
/**
|
|
1657
|
+
* Update chart and blend.
|
|
1658
|
+
*/
|
|
1659
|
+
function updateBlend(seriesModel, chartView) {
|
|
1660
|
+
var blendMode = seriesModel.get('blendMode') || null;
|
|
1661
|
+
chartView.eachRendered(function (el) {
|
|
1662
|
+
// FIXME marker and other components
|
|
1663
|
+
if (!el.isGroup) {
|
|
1664
|
+
// DON'T mark the element dirty. In case element is incremental and don't want to rerender.
|
|
1665
|
+
el.style.blend = blendMode;
|
|
1666
|
+
}
|
|
1667
|
+
});
|
|
1668
|
+
}
|
|
1669
|
+
function updateZ(model, view) {
|
|
1670
|
+
if (model.preventAutoZ) {
|
|
1671
|
+
return;
|
|
1672
|
+
}
|
|
1673
|
+
var z = model.get('z') || 0;
|
|
1674
|
+
var zlevel = model.get('zlevel') || 0;
|
|
1675
|
+
// Set z and zlevel
|
|
1676
|
+
view.eachRendered(function (el) {
|
|
1677
|
+
doUpdateZ(el, z, zlevel, -Infinity);
|
|
1678
|
+
// Don't traverse the children because it has been traversed in _updateZ.
|
|
1679
|
+
return true;
|
|
1680
|
+
});
|
|
1681
|
+
}
|
|
1682
|
+
function doUpdateZ(el, z, zlevel, maxZ2) {
|
|
1683
|
+
// Group may also have textContent
|
|
1684
|
+
var label = el.getTextContent();
|
|
1685
|
+
var labelLine = el.getTextGuideLine();
|
|
1686
|
+
var isGroup = el.isGroup;
|
|
1687
|
+
if (isGroup) {
|
|
1688
|
+
// set z & zlevel of children elements of Group
|
|
1689
|
+
var children = el.childrenRef();
|
|
1690
|
+
for (var i = 0; i < children.length; i++) {
|
|
1691
|
+
maxZ2 = Math.max(doUpdateZ(children[i], z, zlevel, maxZ2), maxZ2);
|
|
1692
|
+
}
|
|
1693
|
+
} else {
|
|
1694
|
+
// not Group
|
|
1695
|
+
el.z = z;
|
|
1696
|
+
el.zlevel = zlevel;
|
|
1697
|
+
maxZ2 = Math.max(el.z2, maxZ2);
|
|
1698
|
+
}
|
|
1699
|
+
// always set z and zlevel if label/labelLine exists
|
|
1700
|
+
if (label) {
|
|
1701
|
+
label.z = z;
|
|
1702
|
+
label.zlevel = zlevel;
|
|
1703
|
+
// lift z2 of text content
|
|
1704
|
+
// TODO if el.emphasis.z2 is spcefied, what about textContent.
|
|
1705
|
+
isFinite(maxZ2) && (label.z2 = maxZ2 + 2);
|
|
1706
|
+
}
|
|
1707
|
+
if (labelLine) {
|
|
1708
|
+
var textGuideLineConfig = el.textGuideLineConfig;
|
|
1709
|
+
labelLine.z = z;
|
|
1710
|
+
labelLine.zlevel = zlevel;
|
|
1711
|
+
isFinite(maxZ2) && (labelLine.z2 = maxZ2 + (textGuideLineConfig && textGuideLineConfig.showAbove ? 1 : -1));
|
|
1712
|
+
}
|
|
1713
|
+
return maxZ2;
|
|
1714
|
+
}
|
|
1715
|
+
// Clear states without animation.
|
|
1716
|
+
// TODO States on component.
|
|
1717
|
+
function clearStates(model, view) {
|
|
1718
|
+
view.eachRendered(function (el) {
|
|
1719
|
+
// Not applied on removed elements, it may still in fading.
|
|
1720
|
+
if (isElementRemoved(el)) {
|
|
1721
|
+
return;
|
|
1722
|
+
}
|
|
1723
|
+
var textContent = el.getTextContent();
|
|
1724
|
+
var textGuide = el.getTextGuideLine();
|
|
1725
|
+
if (el.stateTransition) {
|
|
1726
|
+
el.stateTransition = null;
|
|
1727
|
+
}
|
|
1728
|
+
if (textContent && textContent.stateTransition) {
|
|
1729
|
+
textContent.stateTransition = null;
|
|
1730
|
+
}
|
|
1731
|
+
if (textGuide && textGuide.stateTransition) {
|
|
1732
|
+
textGuide.stateTransition = null;
|
|
1733
|
+
}
|
|
1734
|
+
// TODO If el is incremental.
|
|
1735
|
+
if (el.hasState()) {
|
|
1736
|
+
el.prevStates = el.currentStates;
|
|
1737
|
+
el.clearStates();
|
|
1738
|
+
} else if (el.prevStates) {
|
|
1739
|
+
el.prevStates = null;
|
|
1740
|
+
}
|
|
1741
|
+
});
|
|
1742
|
+
}
|
|
1743
|
+
function updateStates(model, view) {
|
|
1744
|
+
var stateAnimationModel = model.getModel('stateAnimation');
|
|
1745
|
+
var enableAnimation = model.isAnimationEnabled();
|
|
1746
|
+
var duration = stateAnimationModel.get('duration');
|
|
1747
|
+
var stateTransition = duration > 0 ? {
|
|
1748
|
+
duration: duration,
|
|
1749
|
+
delay: stateAnimationModel.get('delay'),
|
|
1750
|
+
easing: stateAnimationModel.get('easing')
|
|
1751
|
+
// additive: stateAnimationModel.get('additive')
|
|
1752
|
+
} : null;
|
|
1753
|
+
view.eachRendered(function (el) {
|
|
1754
|
+
if (el.states && el.states.emphasis) {
|
|
1755
|
+
// Not applied on removed elements, it may still in fading.
|
|
1756
|
+
if (isElementRemoved(el)) {
|
|
1757
|
+
return;
|
|
1758
|
+
}
|
|
1759
|
+
if (el instanceof Path) {
|
|
1760
|
+
savePathStates(el);
|
|
1761
|
+
}
|
|
1762
|
+
// Only updated on changed element. In case element is incremental and don't want to rerender.
|
|
1763
|
+
// TODO, a more proper way?
|
|
1764
|
+
if (el.__dirty) {
|
|
1765
|
+
var prevStates = el.prevStates;
|
|
1766
|
+
// Restore states without animation
|
|
1767
|
+
if (prevStates) {
|
|
1768
|
+
el.useStates(prevStates);
|
|
1769
|
+
}
|
|
1770
|
+
}
|
|
1771
|
+
// Update state transition and enable animation again.
|
|
1772
|
+
if (enableAnimation) {
|
|
1773
|
+
el.stateTransition = stateTransition;
|
|
1774
|
+
var textContent = el.getTextContent();
|
|
1775
|
+
var textGuide = el.getTextGuideLine();
|
|
1776
|
+
// TODO Is it necessary to animate label?
|
|
1777
|
+
if (textContent) {
|
|
1778
|
+
textContent.stateTransition = stateTransition;
|
|
1779
|
+
}
|
|
1780
|
+
if (textGuide) {
|
|
1781
|
+
textGuide.stateTransition = stateTransition;
|
|
1782
|
+
}
|
|
1783
|
+
}
|
|
1784
|
+
// Use highlighted and selected flag to toggle states.
|
|
1785
|
+
if (el.__dirty) {
|
|
1786
|
+
applyElementStates(el);
|
|
1787
|
+
}
|
|
1788
|
+
}
|
|
1789
|
+
});
|
|
1790
|
+
}
|
|
1791
|
+
createExtensionAPI = function (ecIns) {
|
|
1792
|
+
return new ( /** @class */function (_super) {
|
|
1793
|
+
__extends(class_1, _super);
|
|
1794
|
+
function class_1() {
|
|
1795
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1796
|
+
}
|
|
1797
|
+
class_1.prototype.getCoordinateSystems = function () {
|
|
1798
|
+
return ecIns._coordSysMgr.getCoordinateSystems();
|
|
1799
|
+
};
|
|
1800
|
+
class_1.prototype.getComponentByElement = function (el) {
|
|
1801
|
+
while (el) {
|
|
1802
|
+
var modelInfo = el.__ecComponentInfo;
|
|
1803
|
+
if (modelInfo != null) {
|
|
1804
|
+
return ecIns._model.getComponent(modelInfo.mainType, modelInfo.index);
|
|
1805
|
+
}
|
|
1806
|
+
el = el.parent;
|
|
1807
|
+
}
|
|
1808
|
+
};
|
|
1809
|
+
class_1.prototype.enterEmphasis = function (el, highlightDigit) {
|
|
1810
|
+
enterEmphasis(el, highlightDigit);
|
|
1811
|
+
markStatusToUpdate(ecIns);
|
|
1812
|
+
};
|
|
1813
|
+
class_1.prototype.leaveEmphasis = function (el, highlightDigit) {
|
|
1814
|
+
leaveEmphasis(el, highlightDigit);
|
|
1815
|
+
markStatusToUpdate(ecIns);
|
|
1816
|
+
};
|
|
1817
|
+
class_1.prototype.enterBlur = function (el) {
|
|
1818
|
+
enterBlur(el);
|
|
1819
|
+
markStatusToUpdate(ecIns);
|
|
1820
|
+
};
|
|
1821
|
+
class_1.prototype.leaveBlur = function (el) {
|
|
1822
|
+
leaveBlur(el);
|
|
1823
|
+
markStatusToUpdate(ecIns);
|
|
1824
|
+
};
|
|
1825
|
+
class_1.prototype.enterSelect = function (el) {
|
|
1826
|
+
enterSelect(el);
|
|
1827
|
+
markStatusToUpdate(ecIns);
|
|
1828
|
+
};
|
|
1829
|
+
class_1.prototype.leaveSelect = function (el) {
|
|
1830
|
+
leaveSelect(el);
|
|
1831
|
+
markStatusToUpdate(ecIns);
|
|
1832
|
+
};
|
|
1833
|
+
class_1.prototype.getModel = function () {
|
|
1834
|
+
return ecIns.getModel();
|
|
1835
|
+
};
|
|
1836
|
+
class_1.prototype.getViewOfComponentModel = function (componentModel) {
|
|
1837
|
+
return ecIns.getViewOfComponentModel(componentModel);
|
|
1838
|
+
};
|
|
1839
|
+
class_1.prototype.getViewOfSeriesModel = function (seriesModel) {
|
|
1840
|
+
return ecIns.getViewOfSeriesModel(seriesModel);
|
|
1841
|
+
};
|
|
1842
|
+
return class_1;
|
|
1843
|
+
}(ExtensionAPI))(ecIns);
|
|
1844
|
+
};
|
|
1845
|
+
enableConnect = function (chart) {
|
|
1846
|
+
function updateConnectedChartsStatus(charts, status) {
|
|
1847
|
+
for (var i = 0; i < charts.length; i++) {
|
|
1848
|
+
var otherChart = charts[i];
|
|
1849
|
+
otherChart[CONNECT_STATUS_KEY] = status;
|
|
1850
|
+
}
|
|
1851
|
+
}
|
|
1852
|
+
each(eventActionMap, function (actionType, eventType) {
|
|
1853
|
+
chart._messageCenter.on(eventType, function (event) {
|
|
1854
|
+
if (connectedGroups[chart.group] && chart[CONNECT_STATUS_KEY] !== CONNECT_STATUS_PENDING) {
|
|
1855
|
+
if (event && event.escapeConnect) {
|
|
1856
|
+
return;
|
|
1857
|
+
}
|
|
1858
|
+
var action_1 = chart.makeActionFromEvent(event);
|
|
1859
|
+
var otherCharts_1 = [];
|
|
1860
|
+
each(instances, function (otherChart) {
|
|
1861
|
+
if (otherChart !== chart && otherChart.group === chart.group) {
|
|
1862
|
+
otherCharts_1.push(otherChart);
|
|
1863
|
+
}
|
|
1864
|
+
});
|
|
1865
|
+
updateConnectedChartsStatus(otherCharts_1, CONNECT_STATUS_PENDING);
|
|
1866
|
+
each(otherCharts_1, function (otherChart) {
|
|
1867
|
+
if (otherChart[CONNECT_STATUS_KEY] !== CONNECT_STATUS_UPDATING) {
|
|
1868
|
+
otherChart.dispatchAction(action_1);
|
|
1869
|
+
}
|
|
1870
|
+
});
|
|
1871
|
+
updateConnectedChartsStatus(otherCharts_1, CONNECT_STATUS_UPDATED);
|
|
1872
|
+
}
|
|
1873
|
+
});
|
|
1874
|
+
});
|
|
1875
|
+
};
|
|
1876
|
+
}();
|
|
1877
|
+
return ECharts;
|
|
1878
|
+
}(Eventful);
|
|
1879
|
+
var echartsProto = ECharts.prototype;
|
|
1880
|
+
echartsProto.on = createRegisterEventWithLowercaseECharts('on');
|
|
1881
|
+
echartsProto.off = createRegisterEventWithLowercaseECharts('off');
|
|
1882
|
+
/**
|
|
1883
|
+
* @deprecated
|
|
1884
|
+
*/
|
|
1885
|
+
// @ts-ignore
|
|
1886
|
+
echartsProto.one = function (eventName, cb, ctx) {
|
|
1887
|
+
var self = this;
|
|
1888
|
+
deprecateLog('ECharts#one is deprecated.');
|
|
1889
|
+
function wrapped() {
|
|
1890
|
+
var args2 = [];
|
|
1891
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
1892
|
+
args2[_i] = arguments[_i];
|
|
1893
|
+
}
|
|
1894
|
+
cb && cb.apply && cb.apply(this, args2);
|
|
1895
|
+
// @ts-ignore
|
|
1896
|
+
self.off(eventName, wrapped);
|
|
1897
|
+
}
|
|
1898
|
+
// @ts-ignore
|
|
1899
|
+
this.on.call(this, eventName, wrapped, ctx);
|
|
1900
|
+
};
|
|
1901
|
+
var MOUSE_EVENT_NAMES = ['click', 'dblclick', 'mouseover', 'mouseout', 'mousemove', 'mousedown', 'mouseup', 'globalout', 'contextmenu'];
|
|
1902
|
+
function disposedWarning(id) {
|
|
1903
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1904
|
+
warn('Instance ' + id + ' has been disposed');
|
|
1905
|
+
}
|
|
1906
|
+
}
|
|
1907
|
+
var actions = {};
|
|
1908
|
+
/**
|
|
1909
|
+
* Map eventType to actionType
|
|
1910
|
+
*/
|
|
1911
|
+
var eventActionMap = {};
|
|
1912
|
+
var dataProcessorFuncs = [];
|
|
1913
|
+
var optionPreprocessorFuncs = [];
|
|
1914
|
+
var visualFuncs = [];
|
|
1915
|
+
var themeStorage = {};
|
|
1916
|
+
var loadingEffects = {};
|
|
1917
|
+
var instances = {};
|
|
1918
|
+
var connectedGroups = {};
|
|
1919
|
+
var idBase = +new Date() - 0;
|
|
1920
|
+
var groupIdBase = +new Date() - 0;
|
|
1921
|
+
var DOM_ATTRIBUTE_KEY = '_echarts_instance_';
|
|
1922
|
+
/**
|
|
1923
|
+
* @param opts.devicePixelRatio Use window.devicePixelRatio by default
|
|
1924
|
+
* @param opts.renderer Can choose 'canvas' or 'svg' to render the chart.
|
|
1925
|
+
* @param opts.width Use clientWidth of the input `dom` by default.
|
|
1926
|
+
* Can be 'auto' (the same as null/undefined)
|
|
1927
|
+
* @param opts.height Use clientHeight of the input `dom` by default.
|
|
1928
|
+
* Can be 'auto' (the same as null/undefined)
|
|
1929
|
+
* @param opts.locale Specify the locale.
|
|
1930
|
+
* @param opts.useDirtyRect Enable dirty rectangle rendering or not.
|
|
1931
|
+
*/
|
|
1932
|
+
function init(dom, theme, opts) {
|
|
1933
|
+
var isClient = !(opts && opts.ssr);
|
|
1934
|
+
if (isClient) {
|
|
1935
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1936
|
+
if (!dom) {
|
|
1937
|
+
throw new Error('Initialize failed: invalid dom.');
|
|
1938
|
+
}
|
|
1939
|
+
}
|
|
1940
|
+
var existInstance = getInstanceByDom(dom);
|
|
1941
|
+
if (existInstance) {
|
|
1942
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1943
|
+
warn('There is a chart instance already initialized on the dom.');
|
|
1944
|
+
}
|
|
1945
|
+
return existInstance;
|
|
1946
|
+
}
|
|
1947
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1948
|
+
if (isDom(dom) && dom.nodeName.toUpperCase() !== 'CANVAS' && (!dom.clientWidth && (!opts || opts.width == null) || !dom.clientHeight && (!opts || opts.height == null))) {
|
|
1949
|
+
warn('Can\'t get DOM width or height. Please check ' + 'dom.clientWidth and dom.clientHeight. They should not be 0.' + 'For example, you may need to call this in the callback ' + 'of window.onload.');
|
|
1950
|
+
}
|
|
1951
|
+
}
|
|
1952
|
+
}
|
|
1953
|
+
var chart = new ECharts(dom, theme, opts);
|
|
1954
|
+
chart.id = 'ec_' + idBase++;
|
|
1955
|
+
instances[chart.id] = chart;
|
|
1956
|
+
isClient && setAttribute(dom, DOM_ATTRIBUTE_KEY, chart.id);
|
|
1957
|
+
enableConnect(chart);
|
|
1958
|
+
lifecycle.trigger('afterinit', chart);
|
|
1959
|
+
return chart;
|
|
1960
|
+
}
|
|
1961
|
+
/**
|
|
1962
|
+
* @usage
|
|
1963
|
+
* (A)
|
|
1964
|
+
* ```js
|
|
1965
|
+
* let chart1 = echarts.init(dom1);
|
|
1966
|
+
* let chart2 = echarts.init(dom2);
|
|
1967
|
+
* chart1.group = 'xxx';
|
|
1968
|
+
* chart2.group = 'xxx';
|
|
1969
|
+
* echarts.connect('xxx');
|
|
1970
|
+
* ```
|
|
1971
|
+
* (B)
|
|
1972
|
+
* ```js
|
|
1973
|
+
* let chart1 = echarts.init(dom1);
|
|
1974
|
+
* let chart2 = echarts.init(dom2);
|
|
1975
|
+
* echarts.connect('xxx', [chart1, chart2]);
|
|
1976
|
+
* ```
|
|
1977
|
+
*/
|
|
1978
|
+
function connect(groupId) {
|
|
1979
|
+
// Is array of charts
|
|
1980
|
+
if (isArray(groupId)) {
|
|
1981
|
+
var charts = groupId;
|
|
1982
|
+
groupId = null;
|
|
1983
|
+
// If any chart has group
|
|
1984
|
+
each(charts, function (chart) {
|
|
1985
|
+
if (chart.group != null) {
|
|
1986
|
+
groupId = chart.group;
|
|
1987
|
+
}
|
|
1988
|
+
});
|
|
1989
|
+
groupId = groupId || 'g_' + groupIdBase++;
|
|
1990
|
+
each(charts, function (chart) {
|
|
1991
|
+
chart.group = groupId;
|
|
1992
|
+
});
|
|
1993
|
+
}
|
|
1994
|
+
connectedGroups[groupId] = true;
|
|
1995
|
+
return groupId;
|
|
1996
|
+
}
|
|
1997
|
+
function disconnect(groupId) {
|
|
1998
|
+
connectedGroups[groupId] = false;
|
|
1999
|
+
}
|
|
2000
|
+
/**
|
|
2001
|
+
* Alias and backward compatibility
|
|
2002
|
+
* @deprecated
|
|
2003
|
+
*/
|
|
2004
|
+
var disConnect = disconnect;
|
|
2005
|
+
/**
|
|
2006
|
+
* Dispose a chart instance
|
|
2007
|
+
*/
|
|
2008
|
+
function dispose(chart) {
|
|
2009
|
+
if (isString(chart)) {
|
|
2010
|
+
chart = instances[chart];
|
|
2011
|
+
} else if (!(chart instanceof ECharts)) {
|
|
2012
|
+
// Try to treat as dom
|
|
2013
|
+
chart = getInstanceByDom(chart);
|
|
2014
|
+
}
|
|
2015
|
+
if (chart instanceof ECharts && !chart.isDisposed()) {
|
|
2016
|
+
chart.dispose();
|
|
2017
|
+
}
|
|
2018
|
+
}
|
|
2019
|
+
function getInstanceByDom(dom) {
|
|
2020
|
+
return instances[getAttribute(dom, DOM_ATTRIBUTE_KEY)];
|
|
2021
|
+
}
|
|
2022
|
+
function getInstanceById(key) {
|
|
2023
|
+
return instances[key];
|
|
2024
|
+
}
|
|
2025
|
+
/**
|
|
2026
|
+
* Register theme
|
|
2027
|
+
*/
|
|
2028
|
+
function registerTheme(name, theme) {
|
|
2029
|
+
themeStorage[name] = theme;
|
|
2030
|
+
}
|
|
2031
|
+
/**
|
|
2032
|
+
* Register option preprocessor
|
|
2033
|
+
*/
|
|
2034
|
+
function registerPreprocessor(preprocessorFunc) {
|
|
2035
|
+
if (indexOf(optionPreprocessorFuncs, preprocessorFunc) < 0) {
|
|
2036
|
+
optionPreprocessorFuncs.push(preprocessorFunc);
|
|
2037
|
+
}
|
|
2038
|
+
}
|
|
2039
|
+
function registerProcessor(priority, processor) {
|
|
2040
|
+
normalizeRegister(dataProcessorFuncs, priority, processor, PRIORITY_PROCESSOR_DEFAULT);
|
|
2041
|
+
}
|
|
2042
|
+
/**
|
|
2043
|
+
* Register postIniter
|
|
2044
|
+
* @param {Function} postInitFunc
|
|
2045
|
+
*/
|
|
2046
|
+
function registerPostInit(postInitFunc) {
|
|
2047
|
+
registerUpdateLifecycle('afterinit', postInitFunc);
|
|
2048
|
+
}
|
|
2049
|
+
/**
|
|
2050
|
+
* Register postUpdater
|
|
2051
|
+
* @param {Function} postUpdateFunc
|
|
2052
|
+
*/
|
|
2053
|
+
function registerPostUpdate(postUpdateFunc) {
|
|
2054
|
+
registerUpdateLifecycle('afterupdate', postUpdateFunc);
|
|
2055
|
+
}
|
|
2056
|
+
function registerUpdateLifecycle(name, cb) {
|
|
2057
|
+
lifecycle.on(name, cb);
|
|
2058
|
+
}
|
|
2059
|
+
function registerAction(actionInfo, eventName, action) {
|
|
2060
|
+
if (isFunction(eventName)) {
|
|
2061
|
+
action = eventName;
|
|
2062
|
+
eventName = '';
|
|
2063
|
+
}
|
|
2064
|
+
var actionType = isObject(actionInfo) ? actionInfo.type : [actionInfo, actionInfo = {
|
|
2065
|
+
event: eventName
|
|
2066
|
+
}][0];
|
|
2067
|
+
// Event name is all lowercase
|
|
2068
|
+
actionInfo.event = (actionInfo.event || actionType).toLowerCase();
|
|
2069
|
+
eventName = actionInfo.event;
|
|
2070
|
+
if (eventActionMap[eventName]) {
|
|
2071
|
+
// Already registered.
|
|
2072
|
+
return;
|
|
2073
|
+
}
|
|
2074
|
+
// Validate action type and event name.
|
|
2075
|
+
assert(ACTION_REG.test(actionType) && ACTION_REG.test(eventName));
|
|
2076
|
+
if (!actions[actionType]) {
|
|
2077
|
+
actions[actionType] = {
|
|
2078
|
+
action: action,
|
|
2079
|
+
actionInfo: actionInfo
|
|
2080
|
+
};
|
|
2081
|
+
}
|
|
2082
|
+
eventActionMap[eventName] = actionType;
|
|
2083
|
+
}
|
|
2084
|
+
function registerCoordinateSystem(type, coordSysCreator) {
|
|
2085
|
+
CoordinateSystemManager.register(type, coordSysCreator);
|
|
2086
|
+
}
|
|
2087
|
+
/**
|
|
2088
|
+
* Get dimensions of specified coordinate system.
|
|
2089
|
+
* @param {string} type
|
|
2090
|
+
* @return {Array.<string|Object>}
|
|
2091
|
+
*/
|
|
2092
|
+
function getCoordinateSystemDimensions(type) {
|
|
2093
|
+
var coordSysCreator = CoordinateSystemManager.get(type);
|
|
2094
|
+
if (coordSysCreator) {
|
|
2095
|
+
return coordSysCreator.getDimensionsInfo ? coordSysCreator.getDimensionsInfo() : coordSysCreator.dimensions.slice();
|
|
2096
|
+
}
|
|
2097
|
+
}
|
|
2098
|
+
function registerLayout(priority, layoutTask) {
|
|
2099
|
+
normalizeRegister(visualFuncs, priority, layoutTask, PRIORITY_VISUAL_LAYOUT, 'layout');
|
|
2100
|
+
}
|
|
2101
|
+
function registerVisual(priority, visualTask) {
|
|
2102
|
+
normalizeRegister(visualFuncs, priority, visualTask, PRIORITY_VISUAL_CHART, 'visual');
|
|
2103
|
+
}
|
|
2104
|
+
var registeredTasks = [];
|
|
2105
|
+
function normalizeRegister(targetList, priority, fn, defaultPriority, visualType) {
|
|
2106
|
+
if (isFunction(priority) || isObject(priority)) {
|
|
2107
|
+
fn = priority;
|
|
2108
|
+
priority = defaultPriority;
|
|
2109
|
+
}
|
|
2110
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
2111
|
+
if (isNaN(priority) || priority == null) {
|
|
2112
|
+
throw new Error('Illegal priority');
|
|
2113
|
+
}
|
|
2114
|
+
// Check duplicate
|
|
2115
|
+
each(targetList, function (wrap) {
|
|
2116
|
+
assert(wrap.__raw !== fn);
|
|
2117
|
+
});
|
|
2118
|
+
}
|
|
2119
|
+
// Already registered
|
|
2120
|
+
if (indexOf(registeredTasks, fn) >= 0) {
|
|
2121
|
+
return;
|
|
2122
|
+
}
|
|
2123
|
+
registeredTasks.push(fn);
|
|
2124
|
+
var stageHandler = Scheduler.wrapStageHandler(fn, visualType);
|
|
2125
|
+
stageHandler.__prio = priority;
|
|
2126
|
+
stageHandler.__raw = fn;
|
|
2127
|
+
targetList.push(stageHandler);
|
|
2128
|
+
}
|
|
2129
|
+
function registerLoading(name, loadingFx) {
|
|
2130
|
+
loadingEffects[name] = loadingFx;
|
|
2131
|
+
}
|
|
2132
|
+
/**
|
|
2133
|
+
* ZRender need a canvas context to do measureText.
|
|
2134
|
+
* But in node environment canvas may be created by node-canvas.
|
|
2135
|
+
* So we need to specify how to create a canvas instead of using document.createElement('canvas')
|
|
2136
|
+
*
|
|
2137
|
+
*
|
|
2138
|
+
* @deprecated use setPlatformAPI({ createCanvas }) instead.
|
|
2139
|
+
*
|
|
2140
|
+
* @example
|
|
2141
|
+
* let Canvas = require('canvas');
|
|
2142
|
+
* let echarts = require('echarts');
|
|
2143
|
+
* echarts.setCanvasCreator(function () {
|
|
2144
|
+
* // Small size is enough.
|
|
2145
|
+
* return new Canvas(32, 32);
|
|
2146
|
+
* });
|
|
2147
|
+
*/
|
|
2148
|
+
function setCanvasCreator(creator) {
|
|
2149
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
2150
|
+
deprecateLog('setCanvasCreator is deprecated. Use setPlatformAPI({ createCanvas }) instead.');
|
|
2151
|
+
}
|
|
2152
|
+
setPlatformAPI({
|
|
2153
|
+
createCanvas: creator
|
|
2154
|
+
});
|
|
2155
|
+
}
|
|
2156
|
+
/**
|
|
2157
|
+
* The parameters and usage: see `geoSourceManager.registerMap`.
|
|
2158
|
+
* Compatible with previous `echarts.registerMap`.
|
|
2159
|
+
*/
|
|
2160
|
+
function registerMap(mapName, geoJson, specialAreas) {
|
|
2161
|
+
var registerMap = getImpl('registerMap');
|
|
2162
|
+
registerMap && registerMap(mapName, geoJson, specialAreas);
|
|
2163
|
+
}
|
|
2164
|
+
function getMap(mapName) {
|
|
2165
|
+
var getMap = getImpl('getMap');
|
|
2166
|
+
return getMap && getMap(mapName);
|
|
2167
|
+
}
|
|
2168
|
+
var registerTransform = registerExternalTransform;
|
|
2169
|
+
/**
|
|
2170
|
+
* Globa dispatchAction to a specified chart instance.
|
|
2171
|
+
*/
|
|
2172
|
+
// export function dispatchAction(payload: { chartId: string } & Payload, opt?: Parameters<ECharts['dispatchAction']>[1]) {
|
|
2173
|
+
// if (!payload || !payload.chartId) {
|
|
2174
|
+
// // Must have chartId to find chart
|
|
2175
|
+
// return;
|
|
2176
|
+
// }
|
|
2177
|
+
// const chart = instances[payload.chartId];
|
|
2178
|
+
// if (chart) {
|
|
2179
|
+
// chart.dispatchAction(payload, opt);
|
|
2180
|
+
// }
|
|
2181
|
+
// }
|
|
2182
|
+
// Builtin global visual
|
|
2183
|
+
registerVisual(PRIORITY_VISUAL_GLOBAL, seriesStyleTask);
|
|
2184
|
+
registerVisual(PRIORITY_VISUAL_CHART_DATA_CUSTOM, dataStyleTask);
|
|
2185
|
+
registerVisual(PRIORITY_VISUAL_CHART_DATA_CUSTOM, dataColorPaletteTask);
|
|
2186
|
+
registerVisual(PRIORITY_VISUAL_GLOBAL, seriesSymbolTask);
|
|
2187
|
+
registerVisual(PRIORITY_VISUAL_CHART_DATA_CUSTOM, dataSymbolTask);
|
|
2188
|
+
registerVisual(PRIORITY_VISUAL_DECAL, decalVisual);
|
|
2189
|
+
registerPreprocessor(globalBackwardCompat);
|
|
2190
|
+
registerProcessor(PRIORITY_PROCESSOR_DATASTACK, dataStack);
|
|
2191
|
+
registerLoading('default', defaultLoading);
|
|
2192
|
+
// Default actions
|
|
2193
|
+
registerAction({
|
|
2194
|
+
type: HIGHLIGHT_ACTION_TYPE,
|
|
2195
|
+
event: HIGHLIGHT_ACTION_TYPE,
|
|
2196
|
+
update: HIGHLIGHT_ACTION_TYPE
|
|
2197
|
+
}, noop);
|
|
2198
|
+
registerAction({
|
|
2199
|
+
type: DOWNPLAY_ACTION_TYPE,
|
|
2200
|
+
event: DOWNPLAY_ACTION_TYPE,
|
|
2201
|
+
update: DOWNPLAY_ACTION_TYPE
|
|
2202
|
+
}, noop);
|
|
2203
|
+
registerAction({
|
|
2204
|
+
type: SELECT_ACTION_TYPE,
|
|
2205
|
+
event: SELECT_ACTION_TYPE,
|
|
2206
|
+
update: SELECT_ACTION_TYPE
|
|
2207
|
+
}, noop);
|
|
2208
|
+
registerAction({
|
|
2209
|
+
type: UNSELECT_ACTION_TYPE,
|
|
2210
|
+
event: UNSELECT_ACTION_TYPE,
|
|
2211
|
+
update: UNSELECT_ACTION_TYPE
|
|
2212
|
+
}, noop);
|
|
2213
|
+
registerAction({
|
|
2214
|
+
type: TOGGLE_SELECT_ACTION_TYPE,
|
|
2215
|
+
event: TOGGLE_SELECT_ACTION_TYPE,
|
|
2216
|
+
update: TOGGLE_SELECT_ACTION_TYPE
|
|
2217
|
+
}, noop);
|
|
2218
|
+
// Default theme
|
|
2219
|
+
registerTheme('light', lightTheme);
|
|
2220
|
+
registerTheme('dark', theme);
|
|
2221
|
+
// For backward compatibility, where the namespace `dataTool` will
|
|
2222
|
+
// be mounted on `echarts` is the extension `dataTool` is imported.
|
|
2223
|
+
var dataTool = {};
|
|
2224
|
+
|
|
2225
|
+
export { PRIORITY, connect, dataTool, dependencies, disConnect, disconnect, dispose, getCoordinateSystemDimensions, getInstanceByDom, getInstanceById, getMap, init, registerAction, registerCoordinateSystem, registerLayout, registerLoading, registerMap, registerPostInit, registerPostUpdate, registerPreprocessor, registerProcessor, registerTheme, registerTransform, registerUpdateLifecycle, registerVisual, setCanvasCreator, version };
|